diff options
Diffstat (limited to 'chip/stm32/watchdog.c')
-rw-r--r-- | chip/stm32/watchdog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/watchdog.c b/chip/stm32/watchdog.c index aa9a3cd168..432bb280e1 100644 --- a/chip/stm32/watchdog.c +++ b/chip/stm32/watchdog.c @@ -51,7 +51,7 @@ int watchdog_init(void) STM32_IWDG_PR = IWDG_PRESCALER & 7; /* Set the reload value of the watchdog counter */ - STM32_IWDG_RLR = MIN(STM32_IWDG_RLR_MAX, WATCHDOG_PERIOD_MS * + STM32_IWDG_RLR = MIN(STM32_IWDG_RLR_MAX, CONFIG_WATCHDOG_PERIOD_MS * (LSI_CLOCK / IWDG_PRESCALER_DIV) / 1000); /* Start the watchdog (and re-lock registers) */ |