https://os.mbed.com/cookbook/WatchDog-Timer This link has demonstrated a way to implement Watchdog Timer on Mbed. This library is the library version of that code.
Diff: WatchdogTimer.cpp
- Revision:
- 1:7d0312e56c87
- Parent:
- 0:dece639e483e
- Child:
- 2:1b576cfa3f49
--- a/WatchdogTimer.cpp Fri Feb 09 11:13:11 2018 +0000 +++ b/WatchdogTimer.cpp Fri Feb 09 11:29:05 2018 +0000 @@ -1,10 +1,7 @@ #include "mbed.h" #include "WatchdogTimer.h" -/* -WatchdogTimer::WatchdogTimer(float TimeInSecond): _kick(TimeInSecond){ - _kick(); -} -*/ + + // "kick" or "feed" the dog - reset the watchdog timer // by writing this required bit pattern void WatchdogTimer::kick() {