6#if defined(HAL_IWDG_MODULE_ENABLED)
18 explicit STM32Watchdog(IWDG_HandleTypeDef* hiwdg, uint32_t timeout_ms = 1000,
19 uint32_t feed_ms = 250, uint32_t clock = LSI_VALUE);
23 ErrorCode
Feed()
override;
25 ErrorCode
Start()
override;
27 ErrorCode
Stop()
override;
STM32 IWDG 看门狗驱动 / STM32 independent watchdog driver.
uint32_t clock_
LSI clock in Hz.
ErrorCode Stop() override
停止看门狗 / Stop the watchdog
ErrorCode Start() override
启动看门狗 / Start the watchdog
IWDG_HandleTypeDef * hiwdg_
STM32 HAL IWDG handle.
ErrorCode Feed() override
立即手动喂狗 Feed the watchdog immediately
ErrorCode SetConfig(const Configuration &config) override
初始化硬件并设置超时时间 Initialize hardware and set overflow time
通用看门狗(Watchdog)抽象接口 General Watchdog interface for both thread and task style usage
看门狗配置结构体 Configuration for the watchdog