aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3
diff options
context:
space:
mode:
authorchrysn2012-10-18 13:19:55 +0200
committerchrysn2012-10-18 13:19:55 +0200
commita8a6eb39e9dfa25a9934298c6321b912337c0621 (patch)
tree7746ebc7a6cc120bbca0735d8484f95e6cf93613 /include/libopencm3
parentf705d1cd6ec77f6610046c3d9a009c263b526f25 (diff)
add irq cound to existing nvic.h files
Diffstat (limited to 'include/libopencm3')
-rw-r--r--include/libopencm3/lpc43xx/nvic.h2
-rw-r--r--include/libopencm3/stm32/f1/nvic_f1.h2
-rw-r--r--include/libopencm3/stm32/f2/nvic_f2.h2
-rw-r--r--include/libopencm3/stm32/f4/nvic_f4.h2
4 files changed, 8 insertions, 0 deletions
diff --git a/include/libopencm3/lpc43xx/nvic.h b/include/libopencm3/lpc43xx/nvic.h
index 597e21a..0fc5cc6 100644
--- a/include/libopencm3/lpc43xx/nvic.h
+++ b/include/libopencm3/lpc43xx/nvic.h
@@ -62,5 +62,7 @@
#define NVIC_M4_C_CAN0_IRQ 51
#define NVIC_M4_QEI_IRQ 52
+#define NVIC_IRQ_COUNT 53
+
/* LPC43xx M0 specific user interrupts */
//TODO
diff --git a/include/libopencm3/stm32/f1/nvic_f1.h b/include/libopencm3/stm32/f1/nvic_f1.h
index 5223bb6..1544e4f 100644
--- a/include/libopencm3/stm32/f1/nvic_f1.h
+++ b/include/libopencm3/stm32/f1/nvic_f1.h
@@ -109,6 +109,8 @@ LGPL License Terms @ref lgpl_license
#define NVIC_CAN2_RX1_IRQ 65
#define NVIC_CAN2_SCE_IRQ 66
#define NVIC_OTG_FS_IRQ 67
+
+#define NVIC_IRQ_COUNT 68
/**@}*/
#endif
diff --git a/include/libopencm3/stm32/f2/nvic_f2.h b/include/libopencm3/stm32/f2/nvic_f2.h
index 2bf2997..65a990d 100644
--- a/include/libopencm3/stm32/f2/nvic_f2.h
+++ b/include/libopencm3/stm32/f2/nvic_f2.h
@@ -109,4 +109,6 @@
#define NVIC_CRYP_IRQ 79
#define NVIC_HASH_RNG_IRQ 80
+#define NVIC_IRQ_COUNT 81
+
#endif
diff --git a/include/libopencm3/stm32/f4/nvic_f4.h b/include/libopencm3/stm32/f4/nvic_f4.h
index 91b6c25..013e3b5 100644
--- a/include/libopencm3/stm32/f4/nvic_f4.h
+++ b/include/libopencm3/stm32/f4/nvic_f4.h
@@ -109,4 +109,6 @@
#define NVIC_CRYP_IRQ 79
#define NVIC_HASH_RNG_IRQ 80
+#define NVIC_IRQ_COUNT 81
+
#endif