Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-rtos EthernetInterface FatFileSystemCpp MCP23S17 SDFileSystem mbed
Fork of HTTPServerHelloWorld by
Diff: HardwareDrivers/WatchDogTimer/WatchDogTimer.h
- 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
