aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/cm3/vector.h
diff options
context:
space:
mode:
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