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.cpp
Revision | Date | Message | Actions |
---|---|---|---|
2:2873f068f325 | 2011-06-16 | v1.00 initial documented version | File Diff Annotate |
0:7a316f14da9c | 2011-03-20 | (none) | File Diff Annotate |