bsps/irq: Assert BSP_INTERRUPT_VECTOR_MIN == 0

After building all BSPs with this patch, this BSP-specific define can be
removed to simplify the implementation.

Update #3269.
This commit is contained in:
Sebastian Huber
2021-06-19 11:31:12 +02:00
parent 5210c7c219
commit f3acb8bf03

View File

@@ -62,6 +62,10 @@ extern "C" {
#error "invalid BSP_INTERRUPT_VECTOR_MIN or BSP_INTERRUPT_VECTOR_MAX"
#endif
#if BSP_INTERRUPT_VECTOR_MIN != 0
#error "BSP_INTERRUPT_VECTOR_MIN shall be zero"
#endif
#if defined(BSP_INTERRUPT_USE_INDEX_TABLE) && !defined(BSP_INTERRUPT_HANDLER_TABLE_SIZE)
#error "if you define BSP_INTERRUPT_USE_INDEX_TABLE, you have to define BSP_INTERRUPT_HANDLER_TABLE_SIZE etc. as well"
#endif