diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-11-10 20:01:58 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-11-10 20:01:58 +0100 |
commit | f045df8d6c46eda5bec32dec590180784336f6b3 (patch) | |
tree | ca5c86d8855dcbc0a9b08327556c6a5e370e72c7 | |
parent | 12f9cd58f47eefe17a0398f24a603cdb65728a95 (diff) |
Added fault handler stubs.
-rw-r--r-- | fault.cpp | 10 |
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); } |