Wiljan Arias / WhexReefMonitor

Dependencies:   mbed-rtos EthernetInterface FatFileSystemCpp MCP23S17 SDFileSystem mbed

Fork of HTTPServerHelloWorld by Donatien Garnier

Revision:
7:1fe91b525d9a
diff -r b2c4687b421d -r 1fe91b525d9a HardwareDrivers/WatchDogTimer/WatchDogTimer.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HardwareDrivers/WatchDogTimer/WatchDogTimer.h	Sat Feb 08 17:33:41 2014 +0000
@@ -0,0 +1,16 @@
+#ifndef WATCH_DOG_TIMER_H
+#define WATCH_DOG_TIMER_H
+
+#include "mbed.h"
+
+#define SYSTEM_RESET_NORMAL 1
+#define SYSTEM_RESET_WATCH_DOG 2
+
+class WatchDogTimer {
+public: 
+    WatchDogTimer(float seconds);
+    void feed();
+    static int systemResetReason();
+};
+
+#endif
\ No newline at end of file