aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/stm32/nvic.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libopencm3/stm32/nvic.h')
-rw-r--r--include/libopencm3/stm32/nvic.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/nvic.h b/include/libopencm3/stm32/nvic.h
index 339a159..61b231e 100644
--- a/include/libopencm3/stm32/nvic.h
+++ b/include/libopencm3/stm32/nvic.h
@@ -88,9 +88,13 @@
#ifdef STM32F2
#include <libopencm3/stm32/f2/nvic_f2.h>
#else
+#ifdef STM32F4
+#include <libopencm3/stm32/f4/nvic_f4.h>
+#else
#error "stm32 family not defined."
#endif
#endif
+#endif
/* --- NVIC functions ------------------------------------------------------ */