stm32-rs / stm32g0xx-hal

Peripheral access API for STM32G0 series microcontrollers
Apache License 2.0
73 stars 51 forks source link

Allow querying of actual PWM frequency #117

Closed davidlattimore closed 2 years ago

davidlattimore commented 2 years ago

For PWM frequencies close to the clock source there can be quite a difference between requested frequency and actual frequency. Providing a way for the user to check what frequency they actually got can help with debugging.

andresv commented 2 years ago

@dotcypress it seems fine for me do you have any comments on this one?