|
STM32 RTOS 0.2.3
Bare-metal preemptive RTOS for STM32F446RE
|
IWDG driver: start, refresh and debug-freeze the independent watchdog. More...
Go to the source code of this file.
Functions | |
| DRIVER_MUST_CHECK DriverStatus_e | iwdgStart (IwdgRegisters_t *iwdg, uint32_t prescaler, uint32_t reload) |
| Start the watchdog, then set its prescaler and reload value. | |
| void | iwdgRefresh (IwdgRegisters_t *iwdg) |
| Reload the counter from RLR (KR = 0xAAAA). | |
| void | iwdgFreezeInDebug (DbgmcuRegisters_t *dbgmcu) |
| Stop the IWDG counter whenever the core is halted by a debugger. | |
IWDG driver: start, refresh and debug-freeze the independent watchdog.
The IWDG counts down from RLR at the LSI clock divided by the prescaler, and resets the chip at 0. Once started it cannot be stopped, except by a reset. The LSI is nominally 32 kHz but ranges from 17 to 47 kHz (DS10693), so allow for that when choosing a timeout: here about 100 ms nominal, 69-190 ms worst case.
After a reset, rccResetFlags() reports whether the IWDG caused it.
Definition in file iwdg.h.