diff options
Diffstat (limited to 'src/arch/stm32l4xxx/peripherals/irq.c')
-rw-r--r-- | src/arch/stm32l4xxx/peripherals/irq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/arch/stm32l4xxx/peripherals/irq.c b/src/arch/stm32l4xxx/peripherals/irq.c index 7870a10..e79d8ae 100644 --- a/src/arch/stm32l4xxx/peripherals/irq.c +++ b/src/arch/stm32l4xxx/peripherals/irq.c @@ -22,14 +22,16 @@ void isr_simple_pin_on() set_gpio_pin_high(pin3); } +#ifdef ARCH_STM32L4 #define IRQ_RESERVED(n) 0, #define IRQ(name, uname_, n) name, const void* vectors[] __attribute__((section(".vectors"))) = { - (void*)0x2000c000, /* Top of stack at top of sram1. 48k */ + (void*)STACK_TOP, /* Top of stack at top of sram1. 48k */ #include "arch/stm32l4xxx/peripherals/isrs.inc" }; #undef IRQ_RESERVED #undef IRQ +#endif /* Encodes the provided number as a series of flashes on the on-board * LED. The flashes follow as such: |