diff options
author | IhorNehrutsa <IhorNehrutsa@gmail.com> | 2023-11-12 20:38:46 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-12-11 12:56:38 +1100 |
commit | 88778be73a522abea13a714a909c6e8e763f5a8c (patch) | |
tree | 905f33eb3b3e83891bed827e3006705b207ba44a | |
parent | c393cd7e48e1bfffe25a9d0131ceb23b6bad9b05 (diff) |
esp32/machine_i2c: Use APB_CLK_FREQ instead of I2C_APB_CLK_FREQ.
Signed-off-by: IhorNehrutsa <Ihor.Nehrutsa@gmail.com>
-rw-r--r-- | ports/esp32/machine_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/esp32/machine_i2c.c b/ports/esp32/machine_i2c.c index 50d568151..eefdeaaf9 100644 --- a/ports/esp32/machine_i2c.c +++ b/ports/esp32/machine_i2c.c @@ -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 |