mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 12:44:33 +02:00
fix(lp_i2c): Fixed incorrect clock setting for LP_I2C
The LP_I2C clock setting was incorrect and a lower frequency value was being set during initialization. This commit fixes the behavior.
This commit is contained in:
@@ -112,7 +112,7 @@ static esp_err_t lp_i2c_config_clk(const lp_core_i2c_cfg_t *cfg)
|
|||||||
lp_i2c_ll_set_source_clk(i2c_hal.dev, source_clk);
|
lp_i2c_ll_set_source_clk(i2c_hal.dev, source_clk);
|
||||||
|
|
||||||
/* Configure LP I2C timing paramters. source_clk is ignored for LP_I2C in this call */
|
/* Configure LP I2C timing paramters. source_clk is ignored for LP_I2C in this call */
|
||||||
i2c_hal_set_bus_timing(&i2c_hal, (i2c_clock_source_t)source_clk, cfg->i2c_timing_cfg.clk_speed_hz, source_freq);
|
i2c_hal_set_bus_timing(&i2c_hal, cfg->i2c_timing_cfg.clk_speed_hz, (i2c_clock_source_t)source_clk, source_freq);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user