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

STM32F4: Fix support of second I2C device (I2C2) and add a third (I2C3) #936

Merged
merged 3 commits into from
Sep 3, 2024

Conversation

board707
Copy link
Contributor

@board707 board707 commented Aug 30, 2024

In the current STM32F4 code, support for the second I2C channel is not fully written and works only on some controllers. Despite the fact that the variant files contains macros for setting I2C2 pins, it values are not used in the code and the I2C2 device is always created on the hard-coded pins PB10 PB11. Because of this, I2C2 does not work on boards where the I2C2 interface uses another pins.
This PR fixes these errors, and also adds support for the third (I2C3) channel.
Tested I2C1, I2C2 and I2C3 on the blackpil_F401 board.

@stevstrong stevstrong merged commit 245b97a into rogerclarkmelbourne:master Sep 3, 2024
1 check passed
@stevstrong
Copy link
Collaborator

Thank you!

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