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>
70 # warning *** MCUCSR not defined, using MCUSR instead ***
75 #if WATCHDOG_CONF_BALANCE && WATCHDOG_CONF_TIMEOUT >= 0
76 static int stopped = 0;
88 #if WATCHDOG_CONF_BALANCE && WATCHDOG_CONF_TIMEOUT >= 0
96 #if WATCHDOG_CONF_TIMEOUT >= 0
97 #if WATCHDOG_CONF_BALANCE
101 wdt_enable(WATCHDOG_CONF_TIMEOUT);
108 #if WATCHDOG_CONF_TIMEOUT >= 0
109 #if WATCHDOG_CONF_BALANCE
119 #if WATCHDOG_CONF_TIMEOUT >= 0
120 #if WATCHDOG_CONF_BALANCE
131 wdt_enable(WDTO_15MS);
void watchdog_start(void)
Starts the WDT in watchdog mode if enabled by user configuration, maximum interval.
void watchdog_reboot(void)
Keeps control until the WDT throws a reset signal.
void watchdog_stop(void)
In watchdog mode, the WDT can not be stopped.
void watchdog_periodic(void)
Writes the WDT clear sequence.
void watchdog_init(void)
Copyright (c) 2014, Analog Devices, Inc.