Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PWM freq not correct on all pins. #18

Closed
fpistm opened this issue Jun 7, 2017 · 0 comments
Closed

PWM freq not correct on all pins. #18

fpistm opened this issue Jun 7, 2017 · 0 comments
Assignees
Labels

Comments

@fpistm
Copy link
Member

fpistm commented Jun 7, 2017

PWM frequencies is not the same on all pins.
Depending of the timer used, clock source is not the same (APB1/APB2) so the prescaler also.
timHandle.Init.Prescaler = (uint32_t)(SystemCoreClock / clock_freq) - 1

@fpistm fpistm self-assigned this Jun 7, 2017
@fpistm fpistm added the Bug 🐛 label Jun 7, 2017
@fpistm fpistm closed this as completed in 66e7a3c Jun 8, 2017
fpistm added a commit that referenced this issue Jun 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant