<alp/wdt.h> — Watchdog Timer
System-watchdog control. A missed feed reboots the SoC.
Header
#include <alp/wdt.h>
Quick example
alp_wdt_t *wdt = alp_wdt_open(&(alp_wdt_config_t){
.timeout_ms = 5000,
.reset_mode = ALP_WDT_RESET_SOC,
});
alp_wdt_start(wdt);
while (1) {
do_work();
alp_wdt_feed(wdt); // pet the dog
k_msleep(1000);
}
See also
Questions about this page? Discuss in Community Forum