stm32-rs / stm32l4xx-hal

A Hardware abstraction layer for the stm32l432xx series chips written in rust.
156 stars 103 forks source link

Fixed wrong clocks for Timers #301

Closed janodw closed 2 years ago

janodw commented 2 years ago

If the APB1 or APB2 prescalers not equals 1 timers clocks are set by hardware to twice. See RM0394 rev 4, section 6.2.14 Timer clock

Changes was inspired ... F7 HAL

reitermarkus commented 2 years ago

@janodw, this now has conflicts after https://github.com/stm32-rs/stm32l4xx-hal/pull/308 was merged.

korken89 commented 2 years ago

Hi,

Could you have a look at rebasing this PR?