diff options
Diffstat (limited to 'stm32l4xx_it.c')
-rw-r--r-- | stm32l4xx_it.c | 14 |
1 files changed, 9 insertions, 5 deletions
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 <stdint.h>
+#include <stm32l476xx.h>
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) {}
|