42 #include <nrf_drv_wdt.h> 43 #include "app_error.h" 46 static nrf_drv_wdt_channel_id wdt_channel_id;
47 static uint8_t wdt_initialized = 0;
63 APP_ERROR_CHECK(err_code);
64 err_code = nrf_drv_wdt_channel_alloc(&wdt_channel_id);
65 APP_ERROR_CHECK(err_code);
81 nrf_drv_wdt_channel_feed(wdt_channel_id);
void watchdog_reboot(void)
Keeps control until the WDT throws a reset signal.
static void wdt_event_handler(void)
WDT events handler.
void watchdog_start(void)
Starts the WDT in watchdog mode if enabled by user configuration, maximum interval.
void watchdog_init(void)
Initialisation function for the WDT.
void watchdog_periodic(void)
Writes the WDT clear sequence.