50 #include "nrfx_config.h" 56 static const nrfx_wdt_t wdt = NRFX_WDT_INSTANCE(0);
57 static nrfx_wdt_channel_id wdt_channel_id;
58 static uint8_t wdt_initialized = 0;
75 if(err_code != NRFX_SUCCESS) {
79 err_code = nrfx_wdt_channel_alloc(&wdt, &wdt_channel_id);
81 if(err_code != NRFX_SUCCESS) {
92 nrfx_wdt_enable(&wdt);
100 nrfx_wdt_channel_feed(&wdt, wdt_channel_id);
void watchdog_init(void)
Initialisation function for the WDT.
void watchdog_periodic(void)
Writes the WDT clear sequence.
void watchdog_reboot(void)
Keeps control until the WDT throws a reset signal.
#define LEDS_ALL
The OR mask representation of all device LEDs.
void leds_off(unsigned char leds)
Turn off multiple LEDs.
static void wdt_event_handler(void)
WDT events handler.
Header file for the LED HAL.
void watchdog_start(void)
Starts the WDT in watchdog mode if enabled by user configuration, maximum interval.