Make interrupt default handler trigger panic mode.

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

View File

@ -34,6 +34,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)
{
/* Panic mode is esentially the same as a hardfault,