![]() |
Contiki-NG
|
Files | |
| file | arch/cpu/nrf52840/dev/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. | |
| void | watchdog_start (void) |
| Starts the WDT in watchdog mode if enabled by user configuration, maximum interval. | |
| void | watchdog_periodic (void) |
| Writes the WDT clear sequence. | |
| void | watchdog_reboot (void) |
| Keeps control until the WDT throws a reset signal. | |
| void watchdog_init | ( | void | ) |
Initialisation function for the WDT.
Currently simply explicitly sets the WDT interval to max interval
< Watchdog Control
Definition at line 63 of file watchdog.c.
References wdt_event_handler().
| 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.
< Watchdog Control
< Clear timer mask[3]
< Clear timer mask[1]
< Watchdog Control
< Clear timer mask[2]
< Clear timer mask[0]
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.
< Watchdog Control
< Interval Select mask
< Enable mask
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.
< Watchdog Control
< Enable mask
Definition at line 75 of file watchdog.c.