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

Enable I2C Alternate Function Remapping #152

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

Conversation

albertskog
Copy link

This adds support for using I2C with the alternate mappings PD1, PD0 and PC5, PC6.

To use PD1 (the SWDIO pin), pinV32_DisconnectDebug(PD_1) must be called before Wire.begin(), not sure if this should be documented somewhere or added to the code?

I also changed the existing default mapping to use AFIO_Remap_I2C1_DISABLE so that it is possible to change the pin mapping back to the default at runtime.

Tested on CHV0003F4P6-EVT-R0.

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