We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents deb703c + dcfbac8 commit 3286651Copy full SHA for 3286651
components/driver/i2c/i2c.c
@@ -825,6 +825,9 @@ esp_err_t i2c_param_config(i2c_port_t i2c_num, const i2c_config_t *i2c_conf)
825
#endif // SOC_I2C_SUPPORT_SLAVE
826
{
827
i2c_hal_master_init(&(i2c_context[i2c_num].hal));
828
+ I2C_CLOCK_SRC_ATOMIC() {
829
+ i2c_ll_set_source_clk(i2c_context[i2c_num].hal.dev, src_clk);
830
+ }
831
//Default, we enable hardware filter
832
i2c_ll_master_set_filter(i2c_context[i2c_num].hal.dev, I2C_FILTER_CYC_NUM_DEF);
833
I2C_CLOCK_SRC_ATOMIC() {
0 commit comments