The extendedWatchDogAVR class uses the pre-reset interrupt to of the built in AVR watchdog to extend the allowable time between resets of the watchdog's clock up to multiple minute timescales.
The standard watchdog on an AVR processor has a maximum period of 8s without a reset of the watchdog clock before the processor is restarted.
Code for this is taken from this forum post: https:/
Public static variables
- static uint32_t _barksUntilReset
- The number of times the pre-reset interrupt is allowed to fire before the watchdog reset is allowed.
Constructors, destructors, conversion operators
One-time initialization of watchdog timer.
|resetTime_s||The length of time in seconds between resets of the watchdog before the entire board is reset.|