esp32/machine_i2c: Use APB_CLK_FREQ instead of I2C_APB_CLK_FREQ.

Signed-off-by: IhorNehrutsa <Ihor.Nehrutsa@gmail.com>
This commit is contained in:
IhorNehrutsa 2023-11-12 20:38:46 +02:00 committed by Damien George
parent c393cd7e48
commit 88778be73a
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@
#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S3
#define I2C_SCLK_FREQ XTAL_CLK_FREQ
#elif CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2
#define I2C_SCLK_FREQ I2C_APB_CLK_FREQ
#define I2C_SCLK_FREQ APB_CLK_FREQ
#else
#error "unsupported I2C for ESP32 SoC variant"
#endif