diff options
author | Perry Hung <iperry@alum.mit.edu> | 2010-04-25 18:14:43 -0400 |
---|---|---|
committer | Perry Hung <iperry@alum.mit.edu> | 2010-04-25 18:14:43 -0400 |
commit | 4ccbeb08e64b6bc7cee1f54a04001eff778b4282 (patch) | |
tree | 05f71e01c98ac341c029b2a050b796f1be3de8b5 /libmaple/exc.c | |
parent | b41eb846ca60559cff242d0c550699eb8f309909 (diff) | |
parent | 62552a6f3f93223682f9df2df2614411f7e3d54c (diff) | |
download | librambutan-4ccbeb08e64b6bc7cee1f54a04001eff778b4282.tar.gz librambutan-4ccbeb08e64b6bc7cee1f54a04001eff778b4282.zip |
Merge branch 'master' into spi
Diffstat (limited to 'libmaple/exc.c')
-rw-r--r-- | libmaple/exc.c | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/libmaple/exc.c b/libmaple/exc.c index ebf4b90..dd02476 100644 --- a/libmaple/exc.c +++ b/libmaple/exc.c @@ -1,3 +1,4 @@ +
/* *****************************************************************************
* The MIT License
*
@@ -22,24 +23,41 @@ * THE SOFTWARE.
* ****************************************************************************/
+/**
+ * @brief libmaple exception handlers. If MAPLE_DEBUG is set, then these
+ * exceptions will ASSERT fail and call into the default _fail() light
+ * blinking.
+ */
+
+#include "util.h"
+
void NMIException(void) {
+ ASSERT(0);
+ while(1)
+ ;
}
+
void HardFaultException(void) {
- while (1) {
- }
+ ASSERT(0);
+ while(1)
+ ;
}
void MemManageException(void) {
- while (1) {
- }
+ ASSERT(0);
+ while(1)
+ ;
}
void BusFaultException(void) {
- while (1) {
- }
+ ASSERT(0);
+ while(1)
+ ;
}
void UsageFaultException(void) {
- while (1) {
- }
+ ASSERT(0);
+ while(1)
+ ;
}
+
|