fix(i2c): Use hardware fsm reset on esp32c6/h2/p4

This commit is contained in:
Cao Sen Miao
2024-01-03 16:49:12 +08:00
parent 90afc33cd8
commit 2291ded9a1
7 changed files with 20 additions and 3 deletions

View File

@@ -479,6 +479,10 @@ config SOC_I2C_SUPPORT_SLAVE
bool
default y
config SOC_I2C_SUPPORT_HW_FSM_RST
bool
default y
config SOC_I2C_SUPPORT_HW_CLR_BUS
bool
default y

View File

@@ -246,7 +246,7 @@
#define SOC_I2C_CMD_REG_NUM (8) /*!< Number of I2C command registers */
#define SOC_I2C_SUPPORT_SLAVE (1)
// FSM_RST only resets the FSM, not using it. So SOC_I2C_SUPPORT_HW_FSM_RST not defined.
#define SOC_I2C_SUPPORT_HW_FSM_RST (1)
#define SOC_I2C_SUPPORT_HW_CLR_BUS (1)
#define SOC_I2C_SUPPORT_XTAL (1)