WatchDogAVR.h file

Contains the extendedWatchDogAVR class.

Code for this is taken from this forum post: https://forum.arduino.cc/index.php?topic=248263.0

Classes

class extendedWatchDogAVR
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.

Defines

#define MAXIMUM_WATCHDOG_PERIOD = static_cast(F_CPU / 1048576)
The longest possible time between watchdog interrupts in seconds.

Define documentation

#define MAXIMUM_WATCHDOG_PERIOD = static_cast(F_CPU / 1048576)

The longest possible time between watchdog interrupts in seconds.

For an AVR board, there is one possible watchdog period and the watchdog can be configured to either fire an interrupt at that time or to reset at that time.