SapFlow Probe
A low-cost HRM probe for measuring a tree's water consumption
|
Watchdog for SAMD21. More...
#include <debug.h>
Public Member Functions | |
int | enable (int PeriodMS) |
Enable the watchdog timer to reset the machine if it hangs. More... | |
void | reset () |
Reset or 'kick' the watchdog timer to prevent a reset of the device. | |
uint8_t | resetCause () |
Find out the cause of the last reset - see datasheet for bitmask. | |
void | disable () |
Completely disable the watchdog timer. | |
Watchdog for SAMD21.
This class is borrowed from Adafruits SleepyDog library.
int WatchdogSAMD::enable | ( | int | PeriodMS | ) |
Enable the watchdog timer to reset the machine if it hangs.
maxPeriodMS | The desired millisecond value. Rounds up to the nearest power of 2. Possible values are 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, and 8192. |