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

Fixed PWM configuration macro for STM32 F4x family MCUs #585

Merged

Conversation

patryk3211
Copy link
Contributor

The PWM configuration code had hard-coded usage of the PWM0_ENREG and PWM0_APBEN, it now uses the __indirect__ macro to select the correct registers depending on the specified PWM pin.

Changed the hard-coded usage of PWM0 enable
register to the indirect approach used by
the rest of the configuration macro.
@Paciente8159
Copy link
Owner

Spot on. Thanks

@Paciente8159 Paciente8159 added bug Something isn't working HAL: STM32F4x HAL: STM32F4x labels Jan 14, 2024
@Paciente8159 Paciente8159 changed the base branch from master to v1.8.x January 14, 2024 12:55
@Paciente8159 Paciente8159 changed the base branch from v1.8.x to master January 14, 2024 12:55
@Paciente8159 Paciente8159 merged commit 2b9ccd7 into Paciente8159:master Jan 14, 2024
27 checks passed
@patryk3211 patryk3211 deleted the stm32f4x_pwm_config_fix branch January 15, 2024 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working HAL: STM32F4x HAL: STM32F4x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants