aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/dispatch/nvic.h
diff options
context:
space:
mode:
authorchrysn2012-10-18 13:27:33 +0200
committerchrysn2012-10-18 13:27:33 +0200
commit1684ffe18d4f8e54ebcec204b965bd1052ad7885 (patch)
treec6fbdbc45d8c7468f4e9c0b5ba91557b2d06fe9c /include/libopencm3/dispatch/nvic.h
parent9c13299f25c617974e7851283b51fbb0307d3e1c (diff)
fallback for unknown chips
Diffstat (limited to 'include/libopencm3/dispatch/nvic.h')
-rw-r--r--include/libopencm3/dispatch/nvic.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libopencm3/dispatch/nvic.h b/include/libopencm3/dispatch/nvic.h
index 322ec29..a405b5d 100644
--- a/include/libopencm3/dispatch/nvic.h
+++ b/include/libopencm3/dispatch/nvic.h
@@ -12,5 +12,9 @@
# include <libopencm3/lpc43xx/nvic.h>
#else
-# error "no chipset defined."
+# warning"no chipset defined; user interrupts are disabled"
+
+#define NVIC_IRQ_COUNT 0
+#define IRQ_HANDLERS
+
#endif