|
STM32 RTOS 0.2.3
Bare-metal preemptive RTOS for STM32F446RE
|
WWDG driver implementation (API in wwdg.h). More...
#include "wwdg.h"Go to the source code of this file.
Functions | |
| static DriverStatus_e | wwdgValidateCount (uint32_t value) |
| Accept a counter or window value: 0x40 to 0x7F. | |
| DRIVER_MUST_CHECK DriverStatus_e | wwdgStart (WwdgRegisters_t *wwdg, uint32_t prescaler, uint32_t window, uint32_t counter) |
Set the window and timer base, then start the watchdog counting from counter. | |
| DRIVER_MUST_CHECK DriverStatus_e | wwdgRefresh (WwdgRegisters_t *wwdg, uint32_t counter) |
Reload the counter with counter (CR = WDGA | counter). | |
| void | wwdgEnableEarlyWakeup (WwdgRegisters_t *wwdg) |
| Raise WWDG_IRQn when the counter reaches 0x40, one count before reset. | |
| void | wwdgClearEarlyWakeup (WwdgRegisters_t *wwdg) |
| Clear the early-wakeup flag (SR.EWIF, write 0 to clear). | |
| void | wwdgFreezeInDebug (DbgmcuRegisters_t *dbgmcu) |
| Stop the WWDG counter whenever the core is halted by a debugger. | |