i2c: support esp32c2

This commit is contained in:
laokaiyao
2022-01-04 19:46:53 +08:00
parent 46d5f92533
commit 7da023ceae
25 changed files with 398 additions and 531 deletions

View File

@@ -275,6 +275,10 @@ config SOC_I2C_FIFO_LEN
int
default 32
config SOC_I2C_SUPPORT_SLAVE
bool
default y
config SOC_I2C_SUPPORT_HW_FSM_RST
bool
default y

View File

@@ -145,6 +145,7 @@
#define SOC_I2C_NUM (1U)
#define SOC_I2C_FIFO_LEN (32) /*!< I2C hardware FIFO depth */
#define SOC_I2C_SUPPORT_SLAVE (1)
#define SOC_I2C_SUPPORT_HW_FSM_RST (1)
#define SOC_I2C_SUPPORT_HW_CLR_BUS (1)