Independent watchdog of the STM32H7, behind the Watchdog functions.
More...
Independent watchdog of the STM32H7, 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. Nothing stops it once started but a reset; a debugger freezes it while the CPU is halted. The reset flags come from the RCC that clocks it.
◆ pbl_watchdog_stm32_iwdg
| struct pbl_watchdog_stm32_iwdg |
| Data Fields |
|
uintptr_t |
base |
Registers. |
|
struct pbl_clk |
clk |
LSI clock. |
|
struct pbl_device |
dev |
Device. |
◆ PBL_WATCHDOG_STM32_IWDG_DEFINE
| #define PBL_WATCHDOG_STM32_IWDG_DEFINE |
( |
|
sym, |
|
|
|
_name, |
|
|
|
_base, |
|
|
|
_clk |
|
) |
| |
Value:
.dev =
PBL_DEVICE_INIT(sym, _name, pbl_watchdog_stm32_iwdg_init,
nullptr), .base = (_base), \
.clk = _clk, \
}
#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 stm32_iwdg.h:24
Define the watchdog device.
- Parameters
-
| sym | Symbol of the device. |
| _name | Name. |
| _base | Registers. |
| _clk | LSI clock, from PBL_CLK(). |