Skip to content

Commit

Permalink
boot/startup: Fix unused vector macro
Browse files Browse the repository at this point in the history
When generating isr vector table INT_VECTOR_UNUSED
ignored its argument and used 0 instead.
Now this macro may be used to store some values in
vector table (needed for STM32F1 where table ends
with some magic value).

Signed-off-by: Jerzy Kasenberg <[email protected]>
  • Loading branch information
kasjer committed Apr 11, 2024
1 parent becc6cb commit 3847524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boot/startup/src/interrupts.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Default_SysTick_Handler(void) {
#define INT_VECTOR_PENDSV_HANDLER(handler) handler,
#define INT_VECTOR_SYSTICK_HANDLER(handler) handler,
#define INT_VECTOR(isr) isr,
#define INT_VECTOR_UNUSED(a) 0,
#define INT_VECTOR_UNUSED(a) (void (*)(void))a,
void (*g_pfnVectors[])(void) __attribute__((section(".isr_vector"))) = {
#include "mcu/mcu_vectors.h"
};
Expand Down

0 comments on commit 3847524

Please sign in to comment.