summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fault.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/fault.cpp b/fault.cpp
new file mode 100644
index 0000000..42ebd30
--- /dev/null
+++ b/fault.cpp
@@ -0,0 +1,10 @@
+#include "interrupt.h"
+
+template<> void interrupt<Interrupt::NMI>() { while(1); }
+template<> void interrupt<Interrupt::HardFault>() { while(1); }
+template<> void interrupt<Interrupt::MemManage>() { while(1); }
+template<> void interrupt<Interrupt::BusFault>() { while(1); }
+template<> void interrupt<Interrupt::UsageFault>() { while(1); }
+//template<> void interrupt<Interrupt::SVCall>() { while(1); }
+template<> void interrupt<Interrupt::PendSV>() { while(1); }
+//template<> void interrupt<Interrupt::SysTick>() { while(1); }