fix(i2c_slave): Support 10-bit address on esp32

This commit is contained in:
C.S.M
2024-12-17 11:06:14 +08:00
parent 5729fd2952
commit 056f0bdb0e
3 changed files with 7 additions and 2 deletions

View File

@@ -387,6 +387,10 @@ config SOC_I2C_SUPPORT_APB
bool
default y
config SOC_I2C_SUPPORT_10BIT_ADDR
bool
default y
config SOC_I2C_STOP_INDEPENDENT
bool
default y

View File

@@ -206,6 +206,7 @@
#define SOC_I2C_SUPPORT_SLAVE (1)
#define SOC_I2C_SUPPORT_APB (1)
#define SOC_I2C_SUPPORT_10BIT_ADDR (1)
// On ESP32, the stop bit should be independent, we can't put trans data and stop command together
#define SOC_I2C_STOP_INDEPENDENT (1)