Skip to content

Commit

Permalink
Update i2c_slave.c: clock stretching comment fix (#1811)
Browse files Browse the repository at this point in the history
* Update i2c_slave.c: clock stretching comment fix

This changed since 8991487

* Update i2c_slave.c
  • Loading branch information
giampiero7 authored Sep 28, 2024
1 parent ff373b3 commit 075e829
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/rp2_common/pico_i2c_slave/i2c_slave.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 075e829

Please sign in to comment.