From 4464599daddc051cd4de788b5f6cda532927f652 Mon Sep 17 00:00:00 2001 From: Sudeep Mohanty Date: Fri, 28 Jul 2023 11:32:05 +0200 Subject: [PATCH] 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. --- components/ulp/lp_core/lp_core_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ulp/lp_core/lp_core_i2c.c b/components/ulp/lp_core/lp_core_i2c.c index 39741a5a20..bf88c8bfa5 100644 --- a/components/ulp/lp_core/lp_core_i2c.c +++ b/components/ulp/lp_core/lp_core_i2c.c @@ -112,7 +112,7 @@ static esp_err_t lp_i2c_config_clk(const lp_core_i2c_cfg_t *cfg) lp_periph_set_clk_src(LP_PERIPH_I2C0_MODULE, (soc_module_clk_t)source_clk); /* 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; }