Independent Watchdog (IWDG)¶
lbuild module: modm:platform:iwdg
Iwdg::initialize() configures and starts the watchdog. Call it once after
reset, when the application is ready to call Iwdg::trigger() periodically:
Iwdg::initialize<SystemClock, 4s>();
while (true)
{
do_work();
Iwdg::trigger();
}
Once started, the watchdog can only be stopped by a reset. The prescaler and
reload value remain writable, so calling initialize() again while it is
running changes the timeout.
On the STM32F429, both a software reset and a pin reset stop the watchdog. If the hardware watchdog option byte is set, it starts again after every reset.
This module is only available for stm32.
Dependencies¶
Limited availability: Check with 'lbuild discover' if this module is available for your target!