stm32 own build-in watchdog #1339

This commit is contained in:
rusefillc 2023-12-14 11:31:03 -05:00
parent a22e235a3e
commit cdbac6ed40
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ void startWatchdog(int timeoutMs) {
static WDGConfig wdgcfg;
wdgcfg.pr = STM32_IWDG_PR_64; // t = (1/32768) * 64 = ~2 ms
wdgcfg.rlr = STM32_IWDG_RL((uint32_t)((32.768f / 64.0f) * timeoutMs));
efiPrintf("[wdgStart]");
// ? efiPrintf("[wdgStart]");
wdgStart(&WDGD1, &wdgcfg);
#endif // HAL_USE_WDG
}