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 } }
Revisions of Watchdog.h
Revision | Date | Message | Actions |
---|---|---|---|
6:e0f547e22dd5 | 2015-03-16 | Enhanced the description for the library to indicate target support. | File Diff Annotate |
5:2dad2a78ffbd | 2015-03-16 | Enhanced support from TARGET_LPC1768 to TARGET_LPC4088, TARGET_STM | File Diff Annotate |
4:22c5c4aa4661 | 2014-10-11 | Documentation updates only. | File Diff Annotate |
2:2873f068f325 | 2011-06-16 | v1.00 initial documented version | File Diff Annotate |
1:5a1ff72b5915 | 2011-03-20 | (none) | File Diff Annotate |
0:7a316f14da9c | 2011-03-20 | (none) | File Diff Annotate |