From 058c283919424ef8b4425cdf74739535dd1d8072 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Mon, 1 Jan 2018 17:40:28 -0500 Subject: heap; multitasking --- stm32l4xx_it.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'stm32l4xx_it.c') diff --git a/stm32l4xx_it.c b/stm32l4xx_it.c index c3bd859..dc6dc16 100644 --- a/stm32l4xx_it.c +++ b/stm32l4xx_it.c @@ -1,25 +1,29 @@ -#include +#include void NMI_Handler(void) {} void HardFault_Handler(void) { - while (1); + GPIOA->BSRR |= (1 << 5) | (1 << 6); + while (1); } void MemManage_Handler(void) { - while (1); + GPIOA->BSRR |= (1 << 5) | (1 << 6); + while (1); } void BusFault_Handler(void) { - while (1); + GPIOA->BSRR |= (1 << 5) | (1 << 6); + while (1); } void UsageFault_Handler(void) { - while (1); + GPIOA->BSRR |= (1 << 5) | (1 << 6); + while (1); } void SVC_Handler(void) {} -- cgit v1.2.3