PebbleOS v4.47.0-757-g12b6c531f
Loading...
Searching...
No Matches
ST STM32 IWDG

Independent watchdog of the STM32H7, behind the Watchdog functions. More...

Data Structures

struct  pbl_watchdog_stm32_iwdg
 Watchdog device. More...
 

Macros

#define PBL_WATCHDOG_STM32_IWDG_DEFINE(sym, _name, _base, _clk)
 Define the watchdog device.
 

Detailed Description

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.


Data Structure Documentation

◆ pbl_watchdog_stm32_iwdg

struct pbl_watchdog_stm32_iwdg

Watchdog device.

Data Fields
uintptr_t base Registers.
struct pbl_clk clk LSI clock.
struct pbl_device dev Device.

Macro Definition Documentation

◆ PBL_WATCHDOG_STM32_IWDG_DEFINE

#define PBL_WATCHDOG_STM32_IWDG_DEFINE (   sym,
  _name,
  _base,
  _clk 
)
Value:
PBL_DEVICE_INSTANCE_DEV(sym, struct pbl_watchdog_stm32_iwdg) { \
.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
symSymbol of the device.
_nameName.
_baseRegisters.
_clkLSI clock, from PBL_CLK().