Skip to content

Commit

Permalink
Update machine_i2c.c
Browse files Browse the repository at this point in the history
  • Loading branch information
IhorNehrutsa committed Jul 18, 2023
1 parent d83d145 commit 8a97599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/esp32/machine_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,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 APB_CLK_FREQ
#define I2C_SCLK_FREQ I2C_APB_CLK_FREQ
#else
#error "unsupported I2C for ESP32 SoC variant"
#endif
Expand Down

0 comments on commit 8a97599

Please sign in to comment.