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

I2C: Verify at compile-time that pins have been set to the right mode #101

Open
hannobraun opened this issue Jun 8, 2018 · 0 comments
Open

Comments

@hannobraun
Copy link
Member

PIO0_10/PIO0_11 need to be set to standard/fast mode in their respective IOCON registers for them to be used with the I2C API. This is the default setting, and currently the I2C API doesn't verify that this hasn't been changed.

I'm not at all sure what this should look like in practice, but the various IOCON settings of each pin should probably be tracked at compile-time, and the I2C API should require the setting to be set correctly.

@hannobraun hannobraun changed the title Verify at compile-time that I2C pins have been set to the right mode I2C: Verify at compile-time that pins have been set to the right mode Jun 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant