Contiki-NG
|
Files | |
file | watchdog-arch.c |
Implementation of the CC13xx/CC26xx watchdog driver. | |
file | watchdog-arch.h |
Header file of the CC13xx/CC26xx watchdog driver. | |
Functions | |
void | watchdog_init (void) |
Initialises the Watchdog module. More... | |
uint32_t | watchdog_arch_next_timeout (void) |
Return the next expiration time for the Watchdog. More... | |
void | watchdog_start (void) |
Start the Watchdog. More... | |
void | watchdog_periodic (void) |
Refresh (feed) the Watchdog. More... | |
void | watchdog_stop (void) |
Stop the Watchdog such that it won't timeout and cause a system reset. More... | |
void | watchdog_reboot (void) |
Manually trigger a Watchdog timeout. More... | |
uint32_t watchdog_arch_next_timeout | ( | void | ) |
Return the next expiration time for the Watchdog.
Definition at line 84 of file watchdog-arch.c.
void watchdog_init | ( | void | ) |
Initialises the Watchdog module.
Initialisation function for the WDT.
Simply sets the reload counter to a default value. The WDT is not started yet. To start it, watchdog_start() must be called.
Definition at line 68 of file watchdog-arch.c.
void watchdog_periodic | ( | void | ) |
Refresh (feed) the Watchdog.
Writes the WDT clear sequence.
Definition at line 123 of file watchdog-arch.c.
void watchdog_reboot | ( | void | ) |
Manually trigger a Watchdog timeout.
Keeps control until the WDT throws a reset signal.
Definition at line 147 of file watchdog-arch.c.
References watchdog_start().
void watchdog_start | ( | void | ) |
Start the Watchdog.
Starts the WDT in watchdog mode if enabled by user configuration, maximum interval.
Definition at line 112 of file watchdog-arch.c.
References watchdog_periodic().
void watchdog_stop | ( | void | ) |
Stop the Watchdog such that it won't timeout and cause a system reset.
Stops the WDT such that it won't timeout and cause MCU reset.
Definition at line 136 of file watchdog-arch.c.