Commit a71fa0f1 authored by Theodor-Adrian Stana's avatar Theodor-Adrian Stana

Implemented HardFault_Handler that resets processor, not just stalls it

parent 2457fd5b
......@@ -30,6 +30,7 @@
#include <drivers/rtc.h>
#include <em_device.h>
#include <em_gpio.h>
#include <em_burtc.h>
......@@ -103,3 +104,7 @@ void BURTC_IRQHandler(void)
portEND_SWITCHING_ISR(xHigherPriorityTaskWoken);
}
void HardFault_Handler(void)
{
SCB->AIRCR = 0x05FA0004;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment