LPC1768 and LPC11U24 watchdog timer

Dependents:   GSwifi_tsutenkaku barometer-m0 BMAGThrRev

Revision:
0:f28de891b0d3
Child:
2:f6f05e2eafd0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/WDT.h	Sat Aug 04 05:23:40 2012 +0000
@@ -0,0 +1,12 @@
+// Simon's Watchdog code from
+// http://mbed.org/forum/mbed/topic/508/
+class Watchdog {
+public:
+// Load timeout value in watchdog timer and enable
+    void init(float s);
+// "kick" or "feed" the dog - reset the watchdog timer
+// by writing this required bit pattern
+    void kick();
+    
+    int getFlg ();
+};