Lab 6 - Step 3: Add Detection of Hardware Failure
Fork of ADCandticker_sample by
Diff: wdt.h
- Revision:
- 3:c6c88a1a58a8
diff -r de96c8c234b6 -r c6c88a1a58a8 wdt.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wdt.h Fri Mar 09 15:19:12 2018 +0000 @@ -0,0 +1,20 @@ + +#ifndef WDT_H +#define WDT_H + +// Simple Library for Watchdog +// --------------------------- + +// Initialise watchdog using 1KHz clock +// To prevent overwriting, only a single write to the COPC register possible +// +void wdt_1sec() ; // 1024ms, not windowed, DEFAULT +void wdt_256ms(); // 256ms, not windowed +void wdt_32ms(); // 32ms, not windowed + +// Kick (feed, reload) our watchdog timer +void wdt_kick_all(); // full sequence +void wdt_kickA(); // first part +void wdt_kickB(); // second part + +#endif \ No newline at end of file