From c69916ffb6d515b1dd644830ba27daef4fc75b58 Mon Sep 17 00:00:00 2001 From: chrysn Date: Thu, 18 Oct 2012 17:57:59 +0200 Subject: integrate irq2nvic_h script in buildprocess --- lib/dispatch/vector_nvic.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lib/dispatch/vector_nvic.c (limited to 'lib/dispatch/vector_nvic.c') diff --git a/lib/dispatch/vector_nvic.c b/lib/dispatch/vector_nvic.c new file mode 100644 index 0000000..fc5fdd2 --- /dev/null +++ b/lib/dispatch/vector_nvic.c @@ -0,0 +1,19 @@ +#if defined(STM32F1) +# include "../stm32/f1/vector_nvic.c" +#elif defined(STM32F2) +# include "../stm32/f2/vector_nvic.c" +#elif defined(STM32F4) +# include "../stm32/f4/vector_nvic.c" + +#elif defined(TINYGECKO) +# include "../efm32/tinygecko/vector_nvic.c" + +#elif defined(LPC43XX) +# include "../lpc43xx/vector_nvic.c" + +#else +# warning"no chipset defined; user interrupts are disabled" + +#define IRQ_HANDLERS + +#endif -- cgit v1.2.3 From 14a5fc78cf5e50364d6268aaeb1871966ee89b32 Mon Sep 17 00:00:00 2001 From: chrysn Date: Fri, 19 Oct 2012 19:07:30 +0200 Subject: completing dispatch the LM3S irq list was previously unused as it was missing in the dispatch files; now it got added. (before HEAD^, it wouldn't have made any difference because the discriminating constant wasn't defined anyway) also, this enhances the warning messages --- include/libopencm3/dispatch/nvic.h | 5 ++++- lib/dispatch/vector_nvic.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'lib/dispatch/vector_nvic.c') diff --git a/include/libopencm3/dispatch/nvic.h b/include/libopencm3/dispatch/nvic.h index d8e7889..441fd28 100644 --- a/include/libopencm3/dispatch/nvic.h +++ b/include/libopencm3/dispatch/nvic.h @@ -11,8 +11,11 @@ #elif defined(LPC43XX) # include +#elif defined(LM3S) +# include + #else -# warning"no chipset defined; user interrupts are disabled" +# warning"no interrupts defined for chipset; NVIC_IRQ_COUNT = 0" #define NVIC_IRQ_COUNT 0 diff --git a/lib/dispatch/vector_nvic.c b/lib/dispatch/vector_nvic.c index fc5fdd2..d5e4a60 100644 --- a/lib/dispatch/vector_nvic.c +++ b/lib/dispatch/vector_nvic.c @@ -11,8 +11,11 @@ #elif defined(LPC43XX) # include "../lpc43xx/vector_nvic.c" +#elif defined(LM3S) +# include "../lm3s/vector_nvic.c" + #else -# warning"no chipset defined; user interrupts are disabled" +# warning"no interrupts defined for chipset; not allocating space in the vector table" #define IRQ_HANDLERS -- cgit v1.2.3 From 0a1cf977eb2003dd55cee8f5f840f3a2f6e9c0ce Mon Sep 17 00:00:00 2001 From: Silvio Gissi Date: Fri, 19 Oct 2012 23:09:45 +0200 Subject: Added irq.yaml to lpc_13xx and lpc_17xx families --- include/libopencm3/dispatch/nvic.h | 4 +++ include/libopencm3/lpc13xx/irq.yaml | 62 +++++++++++++++++++++++++++++++++++++ include/libopencm3/lpc17xx/irq.yaml | 39 +++++++++++++++++++++++ lib/dispatch/vector_nvic.c | 4 +++ 4 files changed, 109 insertions(+) create mode 100644 include/libopencm3/lpc13xx/irq.yaml create mode 100644 include/libopencm3/lpc17xx/irq.yaml (limited to 'lib/dispatch/vector_nvic.c') diff --git a/include/libopencm3/dispatch/nvic.h b/include/libopencm3/dispatch/nvic.h index 441fd28..ff08269 100644 --- a/include/libopencm3/dispatch/nvic.h +++ b/include/libopencm3/dispatch/nvic.h @@ -8,6 +8,10 @@ #elif defined(TINYGECKO) # include +#elif defined(LPC13XX) +# include +#elif defined(LPC17XX) +# include #elif defined(LPC43XX) # include diff --git a/include/libopencm3/lpc13xx/irq.yaml b/include/libopencm3/lpc13xx/irq.yaml new file mode 100644 index 0000000..5a372db --- /dev/null +++ b/include/libopencm3/lpc13xx/irq.yaml @@ -0,0 +1,62 @@ +includeguard: LIBOPENCM3_LPC13xx_NVIC_H +partname_humanreadable: LPC 13xx series +partname_doxygen: LPC13xx +irqs: + 0: pio0_0 + 1: pio0_1 + 2: pio0_2 + 3: pio0_3 + 4: pio0_4 + 5: pio0_5 + 6: pio0_6 + 7: pio0_7 + 8: pio0_8 + 9: pio0_9 + 10: pio0_10 + 11: pio0_11 + 12: pio1_0 + 13: pio1_1 + 14: pio1_2 + 15: pio1_3 + 16: pio1_4 + 17: pio1_5 + 18: pio1_6 + 19: pio1_7 + 20: pio1_8 + 21: pio1_9 + 22: pio1_10 + 23: pio1_11 + 24: pio2_0 + 25: pio2_1 + 26: pio2_2 + 27: pio2_3 + 28: pio2_4 + 29: pio2_5 + 30: pio2_6 + 31: pio2_7 + 32: pio2_8 + 33: pio2_9 + 34: pio2_10 + 35: pio2_11 + 36: pio3_0 + 37: pio3_1 + 38: pio3_2 + 39: pio3_3 + 40: i2c0 + 41: ct16b0 + 42: ct16b1 + 43: ct32b0 + 44: ct32b1 + 45: ssp0 + 46: uart + 47: usb + 48: usb_fiq + 49: adc + 50: wdt + 51: bod +# 52: reserved + 53: pio3 + 54: pio2 + 55: pio1 + 56: pio0 + 56: ssp1 diff --git a/include/libopencm3/lpc17xx/irq.yaml b/include/libopencm3/lpc17xx/irq.yaml new file mode 100644 index 0000000..faa140f --- /dev/null +++ b/include/libopencm3/lpc17xx/irq.yaml @@ -0,0 +1,39 @@ +includeguard: LIBOPENCM3_LPC17xx_NVIC_H +partname_humanreadable: LPC 17xx series +partname_doxygen: LPC17xx +irqs: + 0: wdt + 1: timer0 + 2: timer1 + 3: timer2 + 4: timer3 + 5: uart0 + 6: uart1 + 7: uart2 + 8: uart3 + 9: pwm + 10: i2c0 + 11: i2c1 + 12: i2c2 + 13: spi + 14: ssp0 + 15: ssp1 + 16: pll0 + 17: rtc + 18: eint0 + 19: eint1 + 20: eint2 + 21: eint3 + 22: adc + 23: bod + 24: usb + 25: can + 26: gpdma + 27: i2s + 28: ethernet + 29: rit + 30: motor_pwm + 31: qei + 32: pll1 + 33: usb_act + 34: can_act diff --git a/lib/dispatch/vector_nvic.c b/lib/dispatch/vector_nvic.c index d5e4a60..1f4753d 100644 --- a/lib/dispatch/vector_nvic.c +++ b/lib/dispatch/vector_nvic.c @@ -8,6 +8,10 @@ #elif defined(TINYGECKO) # include "../efm32/tinygecko/vector_nvic.c" +#elif defined(LPC13XX) +# include "../lpc13xx/vector_nvic.c" +#elif defined(LPC17XX) +# include "../lpc17xx/vector_nvic.c" #elif defined(LPC43XX) # include "../lpc43xx/vector_nvic.c" -- cgit v1.2.3