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

@@ -187,6 +187,10 @@ config SOC_I2C_FIFO_LEN
int
default 32
config SOC_I2C_SUPPORT_SLAVE
bool
default y
config SOC_I2C_SUPPORT_APB
bool
default y

View File

@@ -154,6 +154,7 @@
#define SOC_I2C_NUM (2)
#define SOC_I2C_FIFO_LEN (32) /*!< I2C hardware FIFO depth */
#define SOC_I2C_SUPPORT_SLAVE (1)
#define SOC_I2C_SUPPORT_APB (1)