Commit 07277700 authored by Christian Eichler's avatar Christian Eichler
Browse files

Make LED 1.1 blink on BusFaults

parent 522008aa
......@@ -57,7 +57,16 @@ IHANDLER void HardFault_Handler() { P1_1_toggle(); while(1) {} }
IHANDLER void NMI_Handler() { P1_1_toggle(); while(1) {} }
IHANDLER void MemManage_Handler() { P1_1_toggle(); while(1) {} }
IHANDLER void UsageFault_Handler() { P1_1_toggle(); while(1) {} }
IHANDLER void BusFault_Handler() { P1_1_toggle(); while(1) {} }
IHANDLER void BusFault_Handler() {
__asm volatile("ldr sp,=__initial_sp; isb");
P1_0_reset();
while(true) {
P1_1_toggle();
for(volatile int i = 0; i < 5000000; ++i) {}
}
}
static void uint64_to_string(char *buf, uint64_t value) {
int digits = 0;
......
Supports Markdown
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