This provides a basic Watchdog service, and includes a startup detection to determine if the reset was caused by the WD.
Dependents: A_CANAdapter LeonardoMbos AVC_2012 RT_CAN ... more
Using this Watchdog Class
#include "Watchdog.h" Watchdog wd; ... void main() { if (wd.WatchdogCausedReset()) pc.printf("Watchdog caused reset.\r\n"); wd.Configure(3.0); // sets the timeout interval for (;;) { wd.Service(); // kick the dog before the timeout // do other work } }
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
6:e0f547e22dd5 | 2015-03-16 | WiredHome | Enhanced the description for the library to indicate target support. |
5:2dad2a78ffbd | 2015-03-16 | WiredHome | Enhanced support from TARGET_LPC1768 to TARGET_LPC4088, TARGET_STM |
4:22c5c4aa4661 | 2014-10-11 | WiredHome | Documentation updates only. |
3:5959d3d35221 | 2014-10-04 | WiredHome | No code change, trying to force an update to the documentation to properly show the wd.service api. |
2:2873f068f325 | 2011-06-16 | WiredHome | v1.00 initial documented version |
1:5a1ff72b5915 | 2011-03-20 | WiredHome | (none) |
0:7a316f14da9c | 2011-03-20 | WiredHome | (none) |