aboutsummaryrefslogtreecommitdiff
path: root/lib/dispatch/vector_nvic.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dispatch/vector_nvic.c')
-rw-r--r--lib/dispatch/vector_nvic.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/dispatch/vector_nvic.c b/lib/dispatch/vector_nvic.c
new file mode 100644
index 0000000..1f4753d
--- /dev/null
+++ b/lib/dispatch/vector_nvic.c
@@ -0,0 +1,26 @@
+#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(LPC13XX)
+# include "../lpc13xx/vector_nvic.c"
+#elif defined(LPC17XX)
+# include "../lpc17xx/vector_nvic.c"
+#elif defined(LPC43XX)
+# include "../lpc43xx/vector_nvic.c"
+
+#elif defined(LM3S)
+# include "../lm3s/vector_nvic.c"
+
+#else
+# warning"no interrupts defined for chipset; not allocating space in the vector table"
+
+#define IRQ_HANDLERS
+
+#endif