![](/media/cache/profiles/100d5d9191f185eeb98d6e291756954a.50x50_q85.png)
Measure system
Dependencies: EthernetNetIf mbed RF12B
Diff: WatchDog/WatchDog.h
- Revision:
- 0:8d62137f7ff4
diff -r 000000000000 -r 8d62137f7ff4 WatchDog/WatchDog.h --- /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