i2c: introduce chip specific cmd register number

Merges https://github.com/espressif/esp-idf/pull/10811
This commit is contained in:
Hanno
2023-02-13 14:12:54 +01:00
committed by Cao Sen Miao
parent a189bdbc7d
commit 8f1cf01ec8
15 changed files with 36 additions and 1 deletions

View File

@@ -363,6 +363,10 @@ config SOC_I2C_FIFO_LEN
int
default 32
config SOC_I2C_CMD_REG_NUM
int
default 8
config SOC_I2C_SUPPORT_SLAVE
bool
default y

View File

@@ -175,6 +175,7 @@
#define SOC_I2C_NUM (1U)
#define SOC_I2C_FIFO_LEN (32) /*!< I2C hardware FIFO depth */
#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.