Skip to content

I2C driver initialization must consider if the pin was defined as I2C #101

Description

@henrique-silva

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions