50 #ifndef WATCHDOG_CONF_TIMEOUT
51 #define WATCHDOG_CONF_TIMEOUT WDTO_2S
59 #ifndef WATCHDOG_CONF_BALANCE
60 #define WATCHDOG_CONF_BALANCE 0
63 #include "dev/watchdog.h"
65 #include <avr/interrupt.h>
74 #if WATCHDOG_CONF_BALANCE && WATCHDOG_CONF_TIMEOUT >= 0
75 static int stopped = 0;
87 #if WATCHDOG_CONF_BALANCE && WATCHDOG_CONF_TIMEOUT >= 0
95 #if WATCHDOG_CONF_TIMEOUT >= 0
96 #if WATCHDOG_CONF_BALANCE
100 wdt_enable(WATCHDOG_CONF_TIMEOUT);
107 #if WATCHDOG_CONF_TIMEOUT >= 0
108 #if WATCHDOG_CONF_BALANCE
118 #if WATCHDOG_CONF_TIMEOUT >= 0
119 #if WATCHDOG_CONF_BALANCE
130 wdt_enable(WDTO_15MS);
void watchdog_stop(void)
Stops the WDT such that it won't timeout and cause MCU reset.
void watchdog_reboot(void)
Keeps control until the WDT throws a reset signal.
void watchdog_periodic(void)
Writes the WDT clear sequence.
void watchdog_init(void)
Initialisation function for the WDT.
void watchdog_start(void)
Starts the WDT in watchdog mode if enabled by user configuration, maximum interval.