Disable I2C
Posted: Wed May 31, 2017 1:21 pm
Hi,
I'd like to disable I2C in some situations. Is it the correct way to turn it off ?
Thank you,
Dan
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