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
   }
}

History

Enhanced the description for the library to indicate target support. default tip

2015-03-16, by WiredHome [Mon, 16 Mar 2015 01:04:32 +0000] rev 6

Enhanced the description for the library to indicate target support.


Enhanced support from TARGET_LPC1768 to TARGET_LPC4088, TARGET_STM

2015-03-16, by WiredHome [Mon, 16 Mar 2015 01:00:03 +0000] rev 5

Enhanced support from TARGET_LPC1768 to TARGET_LPC4088, TARGET_STM


Documentation updates only.

2014-10-11, by WiredHome [Sat, 11 Oct 2014 17:28:07 +0000] rev 4

Documentation updates only.


No code change, trying to force an update to the documentation to properly show the wd.service api.

2014-10-04, by WiredHome [Sat, 04 Oct 2014 17:58:04 +0000] rev 3

No code change, trying to force an update to the documentation to properly show the wd.service api.


v1.00 initial documented version

2011-06-16, by WiredHome [Thu, 16 Jun 2011 20:55:38 +0000] rev 2

v1.00 initial documented version


2011-03-20, by WiredHome [Sun, 20 Mar 2011 23:24:36 +0000] rev 1


2011-03-20, by WiredHome [Sun, 20 Mar 2011 23:22:50 +0000] rev 0