From c29e0323020e0f96932d0f9b09747d5b2e28e5a6 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Tue, 24 Nov 2020 16:41:49 -0700 Subject: Changes to painic. It now prints the stack at the time of failure (if logging is initialized). --- src/arch/stm32l4xxx/peripherals/irq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/arch') 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: -- cgit