diff options
Diffstat (limited to 'core/cortex-m/panic.c')
-rw-r--r-- | core/cortex-m/panic.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/cortex-m/panic.c b/core/cortex-m/panic.c index 58887e5cb7..24174cfb2d 100644 --- a/core/cortex-m/panic.c +++ b/core/cortex-m/panic.c @@ -12,6 +12,7 @@ #include "system.h" #include "task.h" #include "timer.h" +#include "uart.h" #include "util.h" #include "watchdog.h" @@ -335,6 +336,9 @@ void __keep report_panic(void) pdata->cm.hfsr = CPU_NVIC_HFSR; pdata->cm.dfsr = CPU_NVIC_DFSR; +#ifdef CONFIG_UART_PAD_SWITCH + uart_reset_default_pad_panic(); +#endif panic_data_print(pdata); #ifdef CONFIG_DEBUG_EXCEPTIONS panic_show_process_stack(pdata); |