aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32l4xx_it.c
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2018-01-25 11:00:18 -0500
committerClyne Sullivan <tullivan99@gmail.com>2018-01-25 11:00:18 -0500
commit12fa2716dbc3ea80c833411b12fe403421cebb00 (patch)
tree56f7f9c2fe444a8cb0e9abd9993978581184daa5 /src/stm32l4xx_it.c
parentbf230d6a745e61d72cd364bc6f0bea282671b634 (diff)
hardware float support
Diffstat (limited to 'src/stm32l4xx_it.c')
-rw-r--r--src/stm32l4xx_it.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/stm32l4xx_it.c b/src/stm32l4xx_it.c
index 368fed5..d007607 100644
--- a/src/stm32l4xx_it.c
+++ b/src/stm32l4xx_it.c
@@ -1,28 +1,38 @@
#include <stm32l476xx.h>
+#include <lcd.h>
+
+void perror(const char *s)
+{
+ lcd_puts(s);
+}
void NMI_Handler(void) {}
void HardFault_Handler(void)
{
GPIOA->BSRR |= (1 << 5);
+ perror("Hard Fault!");
while (1);
}
void MemManage_Handler(void)
{
GPIOA->BSRR |= (1 << 5);
+ perror("MemManage Fault!");
while (1);
}
void BusFault_Handler(void)
{
GPIOA->BSRR |= (1 << 5);
+ perror("Bus Fault!");
while (1);
}
void UsageFault_Handler(void)
{
GPIOA->BSRR |= (1 << 5);
+ perror("Usage Fault!");
while (1);
}