Structs used by the driver.
- Note
- This is example show how to instantiate WatchDog with watchdog_instance_t,
watchdog_heartbeat_t, and watchdog_hwreg_t.
#define WDG_0 ((watchdog_hwreg_t *)SYSTEM_WATCHDOG_CTRL)
.hwreg = WDG_0,
.enable = {0x1U, 0x1U},
.prescaler = WATCHDOG_PRESCALER_CYCLE_PER_MS-1,
.counterLimit = {WATCHDOG_TIMEOUT_MS, 2*WATCHDOG_TIMEOUT_MS},
.heartbeat = 0x0U,
};
void watchdog_applyConfig(watchdog_instance_t *inst)
Apply the software configuration to the hardware.
Watchdog instance. Holds the software registers and hardware pointer.