We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39b3536 commit f28a94eCopy full SHA for f28a94e
1 file changed
ports/esp32/machine_i2c.c
@@ -30,6 +30,7 @@
30
#include "extmod/modmachine.h"
31
32
#include "driver/i2c_master.h"
33
+#include "hal/i2c_ll.h"
34
35
#if MICROPY_PY_MACHINE_I2C || MICROPY_PY_MACHINE_SOFTI2C
36
@@ -56,6 +57,7 @@
56
57
#if SOC_I2C_SUPPORT_XTAL
58
#if CONFIG_XTAL_FREQ > 0
59
#define I2C_SCLK_FREQ (CONFIG_XTAL_FREQ * 1000000)
60
+#else
61
#error "I2C uses XTAL but no configured freq"
62
#endif // CONFIG_XTAL_FREQ
63
#elif SOC_I2C_SUPPORT_APB
0 commit comments