Skip to content
Commit e85b929c authored by Thomas Stranger's avatar Thomas Stranger Committed by Carles Cufí
Browse files

drivers/watchdog: wwdg stm32: fix prescaler setup for newer series.



Series STM32G0, STM32G4, STM32H7, STM32L5, STM32WB, STM32WL have
a newer wwdg ip and store the prescaler value not in bits[8:7],
but bits bits[13:11], use the definitions from ll to account for that.

Remove IS_WWDG_PRESCALER, this is not required as the prescaler
is not calculated, but known valid prescaler values are tested until a
valid counter is found.

Signed-off-by: default avatarThomas Stranger <thomas.stranger@outlook.com>
parent 13adfc99
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment