Skip to content

Commit 977ab1d

Browse files
authored
i2c_ll_enable_arbitration(i2c->dev, true) (#11271)
1 parent 4b24b3b commit 977ab1d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cores/esp32/esp32-hal-i2c-slave.c

+5
Original file line numberDiff line numberDiff line change
@@ -337,11 +337,16 @@ esp_err_t i2cSlaveInit(uint8_t num, int sda, int scl, uint16_t slaveID, uint32_t
337337
}
338338
#endif // !defined(CONFIG_IDF_TARGET_ESP32P4)
339339

340+
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 5, 0)
341+
i2c_ll_enable_arbitration(i2c->dev, true);
342+
i2c_ll_enable_fifo_mode(i2c->dev, true);
343+
#else
340344
i2c_ll_slave_init(i2c->dev);
341345
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 0)
342346
i2c_ll_enable_fifo_mode(i2c->dev, true);
343347
#else
344348
i2c_ll_slave_set_fifo_mode(i2c->dev, true);
349+
#endif
345350
#endif
346351
i2c_ll_set_slave_addr(i2c->dev, slaveID, false);
347352
i2c_ll_set_tout(i2c->dev, I2C_LL_MAX_TIMEOUT);

0 commit comments

Comments
 (0)