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

RCC for F411: Add missing configuration of PLLI2SCFGR.PLLI2SM #264

Merged
merged 1 commit into from
Mar 4, 2021

Conversation

samcrow
Copy link
Contributor

@samcrow samcrow commented Feb 6, 2021

I was testing I2S and noticed that the actual sample rate was wrong (on an STM32F411 this time). I noticed that while the STM32F411 has a separate M divider before the I2S PLL, the clock setup code was not configuring it in the PLLI2SCFGR.

This pull request proposes to change two of the #[cfg] attributes so that the code sets PLLI2SCFGR.PLLI2SM on the STM32F411, like it already does on the F412/413/423/446.

The changed code works and generates the correct sample rate on my STM32F411.

Copy link
Member

@thalesfragoso thalesfragoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again!

bors r+

@bors bors bot merged commit 8217e02 into stm32-rs:master Mar 4, 2021
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.

2 participants