aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/cm3/vector.h
diff options
context:
space:
mode:
authorchrysn2012-10-18 12:46:30 +0200
committerchrysn2012-10-18 12:46:30 +0200
commitf705d1cd6ec77f6610046c3d9a009c263b526f25 (patch)
tree796d6c0ff3df2b2c254d248b377588cf578587d9 /include/libopencm3/cm3/vector.h
parenta7f5f9f576977f97988b739fd98ff7f164edf156 (diff)
dispatch for chip specific nvic
Diffstat (limited to 'include/libopencm3/cm3/vector.h')
-rw-r--r--include/libopencm3/cm3/vector.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/libopencm3/cm3/vector.h b/include/libopencm3/cm3/vector.h
index 198992b..f78e9d8 100644
--- a/include/libopencm3/cm3/vector.h
+++ b/include/libopencm3/cm3/vector.h
@@ -38,8 +38,7 @@
#define LIBOPENCM3_VECTOR_H
#include <libopencm3/cm3/common.h>
-
-// #include "irq.h" /* we'll nede some definitions */
+#include <libopencm3/cm3/nvic.h>
/** Type of an interrupt function. Only used to avoid hard-to-read function
* pointers in the efm32_vector_table_t struct. */
@@ -59,7 +58,7 @@ typedef struct {
vector_table_entry_t reserved_x0034;
vector_table_entry_t pend_sv;
vector_table_entry_t systick;
- vector_table_entry_t irq[IRQ_COUNT];
+ vector_table_entry_t irq[NVIC_IRQ_COUNT];
} vector_table_t;
#endif