mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-24 01:25:36 +00:00
fix(i2c_master): Fix issue that i2c clock got wrong after reset,
Closes https://github.com/espressif/esp-idf/issues/13397
This commit is contained in:
@@ -135,6 +135,45 @@ static inline void i2c_ll_master_set_fractional_divider(i2c_dev_t *hw, uint8_t d
|
||||
// Not supported on ESP32S2
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Set fractional divider
|
||||
*
|
||||
* @param hw Beginning address of the peripheral registers
|
||||
* @param div_a The denominator of the frequency divider factor of the i2c function clock
|
||||
* @param div_b The numerator of the frequency divider factor of the i2c function clock.
|
||||
*/
|
||||
static inline void i2c_ll_master_get_fractional_divider(i2c_dev_t *hw, uint32_t *div_a, uint32_t *div_b)
|
||||
{
|
||||
// Not supported on ESP32S2
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get clock configurations from registers
|
||||
*
|
||||
* @param hw Beginning address of the peripheral registers
|
||||
* @param div_num div_num
|
||||
* @param clk_sel clk_sel
|
||||
* @param clk_active clk_active
|
||||
*/
|
||||
static inline void i2c_ll_master_save_clock_configurations(i2c_dev_t *hw, uint32_t *div_num, uint8_t *clk_sel, uint8_t *clk_active)
|
||||
{
|
||||
// Not supported on ESP32S2
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get clock configurations from registers
|
||||
*
|
||||
* @param hw Beginning address of the peripheral registers
|
||||
* @param div_num div_num
|
||||
* @param clk_sel clk_sel
|
||||
* @param clk_active clk_active
|
||||
*/
|
||||
static inline void i2c_ll_master_restore_clock_configurations(i2c_dev_t *hw, uint32_t div_num, uint8_t clk_sel, uint8_t clk_active)
|
||||
{
|
||||
// Not supported on ESP32S2
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief Reset I2C txFIFO
|
||||
*
|
||||
|
Reference in New Issue
Block a user