aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32l4xx_it.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32l4xx_it.c')
-rw-r--r--src/stm32l4xx_it.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/stm32l4xx_it.c b/src/stm32l4xx_it.c
new file mode 100644
index 0000000..2aac023
--- /dev/null
+++ b/src/stm32l4xx_it.c
@@ -0,0 +1,34 @@
+#include <stm32l476xx.h>
+
+void NMI_Handler(void) {}
+
+void HardFault_Handler(void)
+{
+ GPIOA->BSRR |= (1 << 5) | (1 << 6);
+ while (1);
+}
+
+void MemManage_Handler(void)
+{
+ GPIOA->BSRR |= (1 << 5) | (1 << 6);
+ while (1);
+}
+
+void BusFault_Handler(void)
+{
+ GPIOA->BSRR |= (1 << 5) | (1 << 6);
+ while (1);
+}
+
+void UsageFault_Handler(void)
+{
+ GPIOA->BSRR |= (1 << 5) | (1 << 6);
+ while (1);
+}
+
+void SVC_Handler(void) {
+
+}
+
+void DebugMon_Handler(void) {}
+