Measure system

Dependencies:   EthernetNetIf mbed RF12B

Revision:
0:8d62137f7ff4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/WatchDog/WatchDog.h	Thu Mar 03 08:45:49 2011 +0000
@@ -0,0 +1,50 @@
+#ifndef WATCHDOG_H
+#define WATCHDOG_H
+
+#include "mbed.h"
+
+/** Watchdog timer implementation (in seconds) */
+class watchdog {
+public: 
+    /** Creates Watchdog timer
+    * 
+    * @param Sets the WDT in seconds
+    */
+    watchdog(float s);
+    
+    /** Keep feeding the watchdog in routine
+    *
+    * xxx.feed(); does the trick
+    */
+    void feed();
+};
+/** Watchdog timer implementation (in milliseconds) */
+class watchdog_ms {
+public: 
+    /** Creates Watchdog timer
+    * 
+    * @param Sets the WDT in milliseconds
+    */
+    watchdog_ms(int ms);
+    /** Keep feeding the watchdog in routine
+    *
+    * xxx.feed(); does the trick
+    */
+    void feed();
+};
+/** Watchdog timer implementation (in microseconds) */
+class watchdog_us {
+public:
+    /** Creates Watchdog timer
+    * 
+    * @param Sets the WDT in microseconds
+    */
+    watchdog_us(int us);
+    /** Keep feeding the watchdog in routine
+    *
+    * xxx.feed(); does the trick
+    */    
+    void feed();
+};
+
+#endif
\ No newline at end of file