47#define LOG_MODULE "WATCHDOG"
48#define LOG_LEVEL LOG_LEVEL_INFO
50static nrfx_wdt_channel_id wdt_channel_id;
51static uint8_t wdt_initialized = 0;
66 nrfx_wdt_config_t config = NRFX_WDT_DEAFULT_CONFIG;
68 APP_ERROR_CHECK(err_code);
69 err_code = nrfx_wdt_channel_alloc(&wdt_channel_id);
70 APP_ERROR_CHECK(err_code);
86 nrfx_wdt_channel_feed(wdt_channel_id);
void watchdog_reboot(void)
Keeps control until the WDT throws a reset signal.
void watchdog_start(void)
Starts the WDT in watchdog mode if enabled by user configuration, maximum interval.
void watchdog_periodic(void)
Writes the WDT clear sequence.
void watchdog_init(void)
Initialisation function for the WDT.
static void wdt_event_handler(void)
WDT events handler.
Header file for the logging system.