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

STM32f4xx: Properly support 4MHz SPI rate #3032

Merged
merged 1 commit into from May 19, 2022

Conversation

LeonMatthesKDAB
Copy link
Contributor

@LeonMatthesKDAB LeonMatthesKDAB commented Apr 27, 2022

Previously, setting 4MHz as the SPI rate was only supported in the
rate setter, but not the getter.

Pull Request Overview

This pull request adds support for 4MHz in the spi's set_rate and get_rate functions.
Previously, it was only supported in the set_rate function, but also wasn't documented!

Testing Strategy

I am currently not able to test this, I just stumbled across it whilst reading the SPI code.

Documentation Updated

  • No updates required

Formatting

  • Ran make prepush.

@github-actions github-actions bot added the stm32 Change pertains to the stm32 family of MCUSs label Apr 27, 2022
Previously, setting 4MHz as the SPI rate was only supported in the
rate setter, but not the getter.
Copy link
Contributor

@hudson-ayers hudson-ayers left a comment

Choose a reason for hiding this comment

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

This looks fine but it would be nice if someone can test it, the comments in the original code make me slightly uneasy that this might not work for some reason.

@alexandruradovici
Copy link
Contributor

I'll try and test it on an STM32F412g Discovery and an SPI display.

Copy link
Contributor

@bradjc bradjc left a comment

Choose a reason for hiding this comment

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

This looks fine to me. I don't see how this would make anything worse, at least.

@hudson-ayers
Copy link
Contributor

Fair enough.

bors r+

@bors
Copy link
Contributor

bors bot commented May 19, 2022

Build succeeded:

@bors bors bot merged commit 21a206a into tock:master May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stm32 Change pertains to the stm32 family of MCUSs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants