mirror of
https://github.com/espressif/esp-idf
synced 2025-03-12 10:39:11 -04:00
Merge branch 'bugfix/fix_i2c_driver_ut_issue_esp32s2' into 'master'
bugfix(i2c): fix esp32-s2 i2c driver UT issue See merge request espressif/esp-idf!6820
This commit is contained in:
commit
7948a9f6f0
@ -100,8 +100,8 @@ static inline void i2c_ll_rxfifo_rst(i2c_dev_t *hw)
|
||||
static inline void i2c_ll_set_scl_timing(i2c_dev_t *hw, int hight_period, int low_period)
|
||||
{
|
||||
hw->scl_low_period.period = low_period;
|
||||
hw->scl_high_period.period = hight_period*0.6;
|
||||
hw->scl_high_period.scl_wait_high_period = hight_period*0.4-1;
|
||||
hw->scl_high_period.period = hight_period;
|
||||
hw->scl_high_period.scl_wait_high_period = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user