Make interrupt default handler trigger panic mode.

This commit is contained in:
Mario Hüttel 2020-09-05 18:23:17 +02:00
parent b8b8e19206
commit e96a710576
1 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,12 @@ void HardFault_Handler(void)
while (1);
}
/* Overwrite default handler. Go to panic mode */
void __int_default_handler(void)
{
panic_mode();
}
void panic_mode(void)
{
static struct safety_memory_boot_status IN_SECTION(.ccm.bss) boot_status;