PebbleOS v4.47.0-1161-g94e3d98da
Loading...
Searching...
No Matches
Nordic nRF5 watchdog

WDT of the nRF52, behind the Watchdog functions. More...

Data Structures

struct  pbl_watchdog_nrf5
 Watchdog device. More...
 

Macros

#define PBL_WATCHDOG_NRF5_DEFINE(sym, _name)
 Define the watchdog device.
 

Detailed Description

WDT of the nRF52, behind the Watchdog functions.

The device starts the watchdog when it comes up, with a timeout of CONFIG_WATCHDOG_TIMEOUT_MS, and enables the interrupt it raises just before the reset, which reports to the watchdog_set_callback() subscriber. Nothing stops it once started but a reset, and its configuration is fixed from then on: when the bootloader started it, its timeout stays.


Data Structure Documentation

◆ pbl_watchdog_nrf5

struct pbl_watchdog_nrf5

Watchdog device.

Data Fields
struct pbl_device dev Device.

Macro Definition Documentation

◆ PBL_WATCHDOG_NRF5_DEFINE

#define PBL_WATCHDOG_NRF5_DEFINE (   sym,
  _name 
)
Value:
PBL_DEVICE_INSTANCE_DEV(sym, struct pbl_watchdog_nrf5) { \
.dev = PBL_DEVICE_INIT(sym, _name, pbl_watchdog_nrf5_init, nullptr), \
}
#define PBL_DEVICE_INIT(sym, _name, _init, _parent)
Initializer for the struct pbl_device of device instance sym.
Definition device.h:169
#define PBL_DEVICE_STATE_DEFINE(sym)
Define the runtime state of device instance sym.
Definition device.h:132
Watchdog device.
Definition nrf5.h:21

Define the watchdog device.

Parameters
symSymbol of the device.
_nameName.