System Management code

Dependencies:   mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP

Fork of SystemManagement by Martin Deng

Revision:
39:ddf38df9699e
Parent:
38:8efacce315ae
--- a/Libs/IMD/IMD.h	Sat Feb 07 08:54:51 2015 +0000
+++ b/Libs/IMD/IMD.h	Wed Feb 11 23:09:57 2015 +0000
@@ -6,13 +6,13 @@
 #include "mbed.h"
 
 enum IMDstatus  {
-    OFF         = 0,
-    NORMAL      = 1,
-    UNDERVOLT   = 2,
-    SPEEDSTART  = 3,
-    ERROR       = 4,
-    GROUNDERR   = 5,
-    INVALID     = 6,  
+    OFF         = 1<<0,
+    NORMAL      = 1<<1,
+    UNDERVOLT   = 1<<2,
+    SPEEDSTART  = 1<<3,
+    ERROR       = 1<<4,
+    GROUNDERR   = 1<<5,
+    INVALID     = 1<<6,  
 };
 
 class IMD{