From 0229619e16b5f37a3628e4a5c50e62edbb8ce812 Mon Sep 17 00:00:00 2001 From: Cao Sen Miao Date: Wed, 17 May 2023 11:26:00 +0800 Subject: [PATCH] i2c: fix fifo length on esp32c2, Closes https://github.com/espressif/esp-idf/issues/11413 --- components/soc/esp32c2/include/soc/Kconfig.soc_caps.in | 2 +- components/soc/esp32c2/include/soc/soc_caps.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/soc/esp32c2/include/soc/Kconfig.soc_caps.in b/components/soc/esp32c2/include/soc/Kconfig.soc_caps.in index 21f6c96f3b..477046ce77 100644 --- a/components/soc/esp32c2/include/soc/Kconfig.soc_caps.in +++ b/components/soc/esp32c2/include/soc/Kconfig.soc_caps.in @@ -237,7 +237,7 @@ config SOC_I2C_NUM config SOC_I2C_FIFO_LEN int - default 32 + default 16 config SOC_I2C_SUPPORT_HW_CLR_BUS bool diff --git a/components/soc/esp32c2/include/soc/soc_caps.h b/components/soc/esp32c2/include/soc/soc_caps.h index f4325632ec..702685a50f 100644 --- a/components/soc/esp32c2/include/soc/soc_caps.h +++ b/components/soc/esp32c2/include/soc/soc_caps.h @@ -126,7 +126,7 @@ // ESP32-C2 has 1 I2C #define SOC_I2C_NUM (1U) -#define SOC_I2C_FIFO_LEN (32) /*!< I2C hardware FIFO depth */ +#define SOC_I2C_FIFO_LEN (16) /*!< I2C hardware FIFO depth */ // FSM_RST only resets the FSM, not using it. So SOC_I2C_SUPPORT_HW_FSM_RST not defined. #define SOC_I2C_SUPPORT_HW_CLR_BUS (1)