Arianna autonomous DAQ firmware

Dependencies:   mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW

Revision:
22:f957c4f840ad
Parent:
12:d472f9811262
Child:
40:1324da35afd4
--- a/Watchdog.h	Wed Oct 10 05:54:12 2012 +0000
+++ b/Watchdog.h	Tue Oct 16 04:47:44 2012 +0000
@@ -1,6 +1,8 @@
 #ifndef MB_Watchdog
 #define MB_Watchdog
 
+#define WDFAILSAFE  (1200u)
+
 // Simon's Watchdog code from
 // http://mbed.org/forum/mbed/topic/508/
 namespace Watchdog {
@@ -23,6 +25,12 @@
         LPC_WDT->WDMOD = 0x3;                   // Enabled and Reset
         kick();
     }
+    
+    struct SnKickStarter {
+        SnKickStarter(const float s) {
+            Watchdog::kick(s);
+        }
+    };
  
 };