diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2018-01-01 17:40:28 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2018-01-01 17:40:28 -0500 |
commit | 058c283919424ef8b4425cdf74739535dd1d8072 (patch) | |
tree | 7aa6c40d7c6aa1dad5b0fba24f22c22759fcab59 /stm32l4xx_it.c | |
parent | de7c4fb07d1ac0298e7fc62000c35193e221aaae (diff) |
heap; multitasking
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) {}
|