![]() |
Contiki-NG
|
Files | |
| file | arch/cpu/simplelink-cc13xx-cc26xx/dev/watchdog-arch.c |
| Implementation of the CC13xx/CC26xx watchdog driver. | |
| file | arch/cpu/simplelink-cc13xx-cc26xx/dev/watchdog-arch.h |
| Header file of the CC13xx/CC26xx watchdog driver. | |
Functions | |
| void | watchdog_init (void) |
| Initialises the Watchdog module. | |
| uint32_t | watchdog_arch_next_timeout (void) |
| Return the next expiration time for the Watchdog. | |
| void | watchdog_start (void) |
| Start the Watchdog. | |
| void | watchdog_periodic (void) |
| Refresh (feed) the Watchdog. | |
| void | watchdog_stop (void) |
| Stop the Watchdog such that it won't timeout and cause a system reset. | |
| void | watchdog_reboot (void) |
| Manually trigger a Watchdog timeout. | |
| uint32_t watchdog_arch_next_timeout | ( | void | ) |
Return the next expiration time for the Watchdog.
Definition at line 84 of file watchdog-arch.c.
References value().
| 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.
Currently simply explicitly sets the WDT interval to max interval
< Watchdog Control
Definition at line 68 of file watchdog-arch.c.
| void watchdog_periodic | ( | void | ) |
Refresh (feed) the Watchdog.
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 123 of file watchdog-arch.c.
| void watchdog_reboot | ( | void | ) |
Manually trigger a Watchdog timeout.
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 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.
< Watchdog Control
< Enable mask
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.