WDT1 of the SF32LB52, behind the Watchdog functions.
More...
WDT1 of the SF32LB52, behind the Watchdog functions.
The device starts the watchdog when it comes up, with a timeout of CONFIG_WATCHDOG_TIMEOUT_MS at the rate of its clock. Until then, the watchdog the bootloader started keeps running.
◆ pbl_watchdog_sf32lb
| struct pbl_watchdog_sf32lb |
| Data Fields |
|
uintptr_t |
base |
Registers. |
|
uintptr_t |
cfg |
HPSYS configuration registers, routing the watchdog to the reboot. |
|
struct pbl_clk |
clk |
Clock. |
|
struct pbl_device |
dev |
Device. |
◆ PBL_WATCHDOG_SF32LB_DEFINE
| #define PBL_WATCHDOG_SF32LB_DEFINE |
( |
|
sym, |
|
|
|
_name, |
|
|
|
_base, |
|
|
|
_clk, |
|
|
|
_cfg |
|
) |
| |
Value:
PBL_DEVICE_REGISTER(sym##_inst, &sym##_inst.dev); \
.base = (_base), \
}
#define PBL_DEVICE_STATE_DEFINE(sym)
Define the runtime state of device instance sym.
Definition device.h:131
#define PBL_DEVICE_INIT(sym, _name, _init, _parent, _deps)
Initializer for the struct pbl_device of device instance sym.
Definition device.h:164
struct pbl_device dev
Device.
Definition sf32lb.h:25
uintptr_t cfg
HPSYS configuration registers, routing the watchdog to the reboot.
Definition sf32lb.h:31
struct pbl_clk clk
Clock.
Definition sf32lb.h:29
Watchdog device.
Definition sf32lb.h:23
A hardware device.
Definition device.h:89
Define the watchdog device.
- Parameters
-
| sym | Symbol of the device. |
| _name | Name. |
| _base | Registers. |
| _clk | Clock, from PBL_CLK(). |
| _cfg | HPSYS configuration registers. |