Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix pwm period calc #3795
This pull request solves an issue that was encountered in specific cases where pwm HW frequency is high and the pwm period was about 100ms (encountered on F746). This was a limitation due to hard coded pre-scaler values of 1 or 500 only. The solution is to have more granularity.
In order to apply the fix to all families and not only F7, the code is also made common between all families which makes maintenance easier.
@LMESTM Please look at the failures
Here's the output (XDOT platform fails for all 3 toolchains)
The link is above in the failure message to get this log