Sleepy watchdogInterrupts()
Enable the watchdog to generate an interrupt a certain amount of time from now, or disable it.
#include <Ports.h>
#include <RF12.h> // needed to avoid a linker error :(
Sleepy::watchdogInterrupts(char mode);
Parameters
mode
Enable watchdog trigger after "
16 << mode" milliseconds (mode 0..9), or disable it (mode < 0).
Notes
If you use this function, you MUST included a definition of a WDT interrupt handler in your code. The simplest is to include a line with a dummy handler:
EMPTY_INTERRUPT(WDT_vect);
This will get called when the watchdog fires.