zephyr/drivers/watchdog
Martin Jäger 916dd0f6c4 drivers: watchdog: iwdg_stm32: Fix timeout calculation
CONFIG_IWDG_STM32_TIMEOUT allowed values of 100 us for initial watchdog
timeout, which was actually rounded to zero in the driver, which uses
milliseconds resolution for timeouts. This resulted in the reload value
being set to maximum possible (calculation: 0U - 1).

This commit updates the calculation of timeout minimum and maximum
values considering the actual LSI frequency of the used MCU.

As the resolution of CONFIG_IWDG_STM32_TIMEOUT in microseconds doesn't
make sense if the driver supports only milliseconds, it is renamed to
IWDG_STM32_INITIAL_TIMEOUT (this prevents accidental wrong settings in
existing firmware) and the unit is changed to ms.

Signed-off-by: Martin Jäger <martin@libre.solar>
2020-12-04 23:09:42 -05:00
..
CMakeLists.txt watchdog: Add watchdog driver 2020-10-23 12:52:13 +02:00
Kconfig watchdog: Add watchdog driver 2020-10-23 12:52:13 +02:00
Kconfig.cmsdk_apb Revert "drivers: watchdog: Remove useless Kconfig entry" 2020-09-09 17:19:43 +02:00
Kconfig.esp32
Kconfig.gecko
Kconfig.mcux
Kconfig.mcux_imx watchdog: Add watchdog driver 2020-10-23 12:52:13 +02:00
Kconfig.nrfx
Kconfig.sam
Kconfig.sam0
Kconfig.stm32 drivers: watchdog: iwdg_stm32: Fix timeout calculation 2020-12-04 23:09:42 -05:00
Kconfig.xec
wdt_cmsdk_apb.c drivers: watchdog: cmsdk: rename wdog_cmsdk_apb_enable 2020-09-09 17:19:43 +02:00
wdt_esp32.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
wdt_gecko.c isr: Normalize usage of device instance through ISR 2020-09-02 13:48:13 +02:00
wdt_handlers.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
wdt_iwdg_stm32.c drivers: watchdog: iwdg_stm32: Fix timeout calculation 2020-12-04 23:09:42 -05:00
wdt_iwdg_stm32.h
wdt_mchp_xec.c misc: Replace assert include and calls by sys/__assert.h equivalent 2020-10-02 11:42:40 +02:00
wdt_mcux_imx_wdog.c watchdog: Add watchdog driver 2020-10-23 12:52:13 +02:00
wdt_mcux_wdog.c isr: Normalize usage of device instance through ISR 2020-09-02 13:48:13 +02:00
wdt_mcux_wdog32.c isr: Normalize usage of device instance through ISR 2020-09-02 13:48:13 +02:00
wdt_mcux_wwdt.c isr: Normalize usage of device instance through ISR 2020-09-02 13:48:13 +02:00
wdt_nrfx.c drivers: Manual const-ification of device driver instance 2020-09-02 13:48:13 +02:00
wdt_sam.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
wdt_sam0.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
wdt_wwdg_stm32.c drivers: wwdg: stm32: use generic LL headers 2020-11-30 15:50:03 +01:00
wdt_wwdg_stm32.h