[PATCH v2 08/12] bsps/irq: Remove BSP_INTERRUPT_VECTOR_NUMBER
Sebastian Huber
sebastian.huber at embedded-brains.de
Sat Jun 19 14:04:44 UTC 2021
Replace it with BSP_INTERRUPT_VECTOR_COUNT.
Update #3269.
---
bsps/include/bsp/irq-generic.h | 4 +---
bsps/shared/irq/irq-generic.c | 2 +-
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/bsps/include/bsp/irq-generic.h b/bsps/include/bsp/irq-generic.h
index 31010d1c08..749dc78988 100644
--- a/bsps/include/bsp/irq-generic.h
+++ b/bsps/include/bsp/irq-generic.h
@@ -74,10 +74,8 @@ extern "C" {
#error "if you define BSP_INTERRUPT_USE_INDEX_TABLE, you have to define BSP_INTERRUPT_HANDLER_TABLE_SIZE etc. as well"
#endif
-#define BSP_INTERRUPT_VECTOR_NUMBER (BSP_INTERRUPT_VECTOR_MAX + 1)
-
#ifndef BSP_INTERRUPT_HANDLER_TABLE_SIZE
- #define BSP_INTERRUPT_HANDLER_TABLE_SIZE BSP_INTERRUPT_VECTOR_NUMBER
+ #define BSP_INTERRUPT_HANDLER_TABLE_SIZE BSP_INTERRUPT_VECTOR_COUNT
#endif
/* Internal macros for SMP support, do not use externally */
diff --git a/bsps/shared/irq/irq-generic.c b/bsps/shared/irq/irq-generic.c
index abe732a9d3..65971fb1b3 100644
--- a/bsps/shared/irq/irq-generic.c
+++ b/bsps/shared/irq/irq-generic.c
@@ -44,7 +44,7 @@
#ifdef BSP_INTERRUPT_USE_INDEX_TABLE
bsp_interrupt_handler_index_type bsp_interrupt_handler_index_table
- [BSP_INTERRUPT_VECTOR_NUMBER];
+ [BSP_INTERRUPT_VECTOR_COUNT];
#endif
bsp_interrupt_handler_entry bsp_interrupt_handler_table
--
2.26.2
More information about the devel
mailing list