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 driver initialization must consider if the pin was defined as I2C #101

Open
henrique-silva opened this issue May 28, 2019 · 0 comments
Labels

Comments

@henrique-silva
Copy link
Contributor

If a board doesn't use all I2C buses, then the I2C module should not try to handle/config all the possible I2C modules in its driver.

A simple solution would be to add a #ifdef guard in port/board/ucontroller/nxp/lpc17_i2c.c where it tries to access I2CX_SCL and I2CX_SDA pins definitions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant