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

cleanup setting of TIM1_AUTORELOAD #116

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tridge
Copy link
Member

@tridge tridge commented Nov 11, 2024

this replaces the manual setting with a calculation based on a 24kHz nominal PWM. It relies on the compiler calculating the value at compile time.
Note that the manual values used different rounding between the MCUs, so this does result in changed builds for some MCUs. I presume this won't matter, but please check carefully @AlkaMotors

Also, some of the values in the Mcu/xxxx/peripherals.c seemed to be incorrect. For example, F415 should be 6000 but it did the initialisation with 3000. It gets overridden in the main loop, but again please check I've understood correctly

this replaces the manual setting with a calculation based on a 24kHz
nominal PWM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant