Now do send a STOP condition at the end of the I2C recovery which might make it more robust.
This commit is contained in:
@@ -43,6 +43,10 @@ void InitI2cMainBus(void)
|
||||
isOn = !isOn;
|
||||
}
|
||||
|
||||
GPIO_WritePinOutput(I2C_MAIN_BUS_SDA_GPIO, I2C_MAIN_BUS_SDA_PIN, 0);
|
||||
delay();
|
||||
GPIO_WritePinOutput(I2C_MAIN_BUS_SDA_GPIO, I2C_MAIN_BUS_SCL_PIN, 1);
|
||||
delay();
|
||||
GPIO_WritePinOutput(I2C_MAIN_BUS_SDA_GPIO, I2C_MAIN_BUS_SDA_PIN, 1);
|
||||
delay();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user