Removing pull-up from slave, master must do it
This commit is contained in:
parent
92e1492ca2
commit
aa0000a02a
|
@ -70,9 +70,6 @@ void i2c_slave_init(void)
|
||||||
gpio_set_function(I2C_SLAVE_SDA_PIN, GPIO_FUNC_I2C);
|
gpio_set_function(I2C_SLAVE_SDA_PIN, GPIO_FUNC_I2C);
|
||||||
gpio_set_function(I2C_SLAVE_SCL_PIN, GPIO_FUNC_I2C);
|
gpio_set_function(I2C_SLAVE_SCL_PIN, GPIO_FUNC_I2C);
|
||||||
|
|
||||||
gpio_pull_up(I2C_SLAVE_SDA_PIN);
|
|
||||||
gpio_pull_up(I2C_SLAVE_SCL_PIN);
|
|
||||||
|
|
||||||
// Note: The I2C slave does clock stretching implicitly after a RD_REQ, while the Tx FIFO is empty.
|
// Note: The I2C slave does clock stretching implicitly after a RD_REQ, while the Tx FIFO is empty.
|
||||||
// There is also an option to enable clock stretching while the Rx FIFO is full, but we leave it
|
// There is also an option to enable clock stretching while the Rx FIFO is full, but we leave it
|
||||||
// disabled since the Rx FIFO should never fill up (unless i2c_slave.handler() is way too slow).
|
// disabled since the Rx FIFO should never fill up (unless i2c_slave.handler() is way too slow).
|
||||||
|
|
Loading…
Reference in New Issue