I'd like to disable I2C in some situations. Is it the correct way to turn it off ?
- Code: Select all
I2C_Enable(I2C0, false);
GPIO_PinModeSet(SDA_PORT, SDA_BIT, gpioModeDisabled, 0); //Disable SDA
GPIO_PinModeSet(SCL_PORT, SCL_BIT, gpioModeDisabled, 0); //Disable SCL
CMU_ClockEnable(cmuClock_I2C0, false);
Thank you,
Dan