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

This commit is contained in:
Cao Sen Miao
2024-04-01 10:15:50 +08:00
parent 90afc33cd8
commit 2291ded9a1
7 changed files with 20 additions and 3 deletions
@@ -531,6 +531,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
@@ -237,7 +237,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)