|
PebbleOS v4.47.0-512-g5285d4236
|
Hardware watchdog and reset cause. More...
Modules | |
| SiFli SF32LB watchdog | |
| WDT1 of the SF32LB52, behind the Watchdog functions. | |
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. | |
| struct pbl_mcu_reboot_reason | watchdog_clear_reset_flag (void) |
| Read and clear the hardware reset cause. | |
| struct pbl_mcu_reboot_reason | 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.
| struct pbl_mcu_reboot_reason watchdog_clear_reset_flag | ( | void | ) |
Read and clear the hardware reset cause.
| void watchdog_feed | ( | void | ) |
Restart the watchdog countdown.
| struct pbl_mcu_reboot_reason 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.