mirror of https://github.com/rusefi/rusefi.git
stm32 own build-in watchdog #1339
This commit is contained in:
parent
a22e235a3e
commit
cdbac6ed40
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue