Update i2c_slave.c: clock stretching comment fix (#1811)
Some checks are pending
CMake / build (push) Waiting to run
Build on macOS / build (push) Waiting to run
Build on Windows / build (push) Waiting to run

* Update i2c_slave.c: clock stretching comment fix

This changed since 89914870ae

* Update i2c_slave.c
This commit is contained in:
Giampiero Baggiani 2024-09-28 06:54:47 +02:00 committed by GitHub
parent ff373b33dc
commit 075e829cd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,8 +62,7 @@ void i2c_slave_init(i2c_inst_t *i2c, uint8_t address, i2c_slave_handler_t handle
slave->handler = handler;
// 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
// disabled since the Rx FIFO should never fill up (unless slave->handler() is way too slow).
// Clock stretching while the Rx FIFO is full is also enabled by default.
i2c_set_slave_mode(i2c, true, address);
i2c_hw_t *hw = i2c_get_hw(i2c);