Contiki-NG
|
Files | |
file | watchdog.c |
Contiki compatible watchdog driver implementation. | |
Functions | |
static void | wdt_event_handler (void) |
WDT events handler. | |
void | watchdog_init (void) |
Initialisation function for the WDT. More... | |
void | watchdog_start (void) |
Starts the WDT in watchdog mode if enabled by user configuration, maximum interval. More... | |
void | watchdog_periodic (void) |
Writes the WDT clear sequence. More... | |
void | watchdog_reboot (void) |
Keeps control until the WDT throws a reset signal. More... | |
void watchdog_init | ( | void | ) |
Initialisation function for the WDT.
Currently simply explicitly sets the WDT interval to max interval
Initialisation function for the WDT.
Simply locks the config so that future calls will lock properly. The WDT is not started yet. To start it, watchdog_start() must be called.
Definition at line 63 of file watchdog.c.
void watchdog_periodic | ( | void | ) |
Writes the WDT clear sequence.
Due to how the SMWDTHROSC_WDCTL works, it is OK to simply write these bits rather than use RMW operations.
Writes the WDT clear sequence.
Definition at line 83 of file watchdog.c.
void watchdog_reboot | ( | void | ) |
Keeps control until the WDT throws a reset signal.
Starts the WDT if not already started.
Keeps control until the WDT throws a reset signal.
Definition at line 91 of file watchdog.c.
void watchdog_start | ( | void | ) |
Starts the WDT in watchdog mode if enabled by user configuration, maximum interval.
Starts the WDT in watchdog mode if enabled by user configuration, maximum interval.
Definition at line 75 of file watchdog.c.