|
PebbleOS
|
Hardware watchdog and reset cause. More...
Functions | |
| void | watchdog_init (void) |
| Configure the watchdog, without starting it. | |
| void | watchdog_start (void) |
| Start the watchdog. | |
| void | watchdog_stop (void) |
| Stop the watchdog. | |
| void | watchdog_feed (void) |
| Restart the watchdog countdown. | |
| bool | watchdog_check_reset_flag (void) |
| Check whether the last reset was caused by the watchdog. | |
| McuRebootReason | watchdog_clear_reset_flag (void) |
| Read and clear the hardware reset cause. | |
| McuRebootReason | watchdog_get_reset_flag (void) |
| Get the reset cause read by the last watchdog_clear_reset_flag(). | |
Hardware watchdog and reset cause.
Without CONFIG_WATCHDOG, all functions are no-ops and no reset cause is reported.
| bool watchdog_check_reset_flag | ( | void | ) |
Check whether the last reset was caused by the watchdog.
| McuRebootReason watchdog_clear_reset_flag | ( | void | ) |
Read and clear the hardware reset cause.
| void watchdog_feed | ( | void | ) |
Restart the watchdog countdown.
| McuRebootReason watchdog_get_reset_flag | ( | void | ) |
Get the reset cause read by the last watchdog_clear_reset_flag().
| void watchdog_init | ( | void | ) |
Configure the watchdog, without starting it.
| void watchdog_start | ( | void | ) |
Start the watchdog.
| void watchdog_stop | ( | void | ) |
Stop the watchdog.