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:
parent
c393cd7e48
commit
88778be73a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue