aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/dispatch/nvic.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libopencm3/dispatch/nvic.h')
-rw-r--r--include/libopencm3/dispatch/nvic.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/libopencm3/dispatch/nvic.h b/include/libopencm3/dispatch/nvic.h
new file mode 100644
index 0000000..d8e7889
--- /dev/null
+++ b/include/libopencm3/dispatch/nvic.h
@@ -0,0 +1,19 @@
+#if defined(STM32F1)
+# include <libopencm3/stm32/f1/nvic.h>
+#elif defined(STM32F2)
+# include <libopencm3/stm32/f2/nvic.h>
+#elif defined(STM32F4)
+# include <libopencm3/stm32/f4/nvic.h>
+
+#elif defined(TINYGECKO)
+# include <libopencm3/efm32/tinygecko/nvic.h>
+
+#elif defined(LPC43XX)
+# include <libopencm3/lpc43xx/nvic.h>
+
+#else
+# warning"no chipset defined; user interrupts are disabled"
+
+#define NVIC_IRQ_COUNT 0
+
+#endif