mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(tsens): Add clear ANALOG_I2C PD in sar_periph
This commit is contained in:
parent
fab98d8996
commit
0d226847f1
@ -42,6 +42,7 @@ void temperature_sensor_power_acquire(void)
|
|||||||
SENS.sar_tctrl.tsens_power_up_force = true;
|
SENS.sar_tctrl.tsens_power_up_force = true;
|
||||||
SENS.sar_tctrl2.tsens_xpd_force = true;
|
SENS.sar_tctrl2.tsens_xpd_force = true;
|
||||||
SENS.sar_tctrl.tsens_power_up = true;
|
SENS.sar_tctrl.tsens_power_up = true;
|
||||||
|
CLEAR_PERI_REG_MASK(RTC_CNTL_ANA_CONF_REG, RTC_CNTL_SAR_I2C_FORCE_PD_M);
|
||||||
SET_PERI_REG_MASK(RTC_CNTL_ANA_CONF_REG, RTC_CNTL_SAR_I2C_FORCE_PU_M);
|
SET_PERI_REG_MASK(RTC_CNTL_ANA_CONF_REG, RTC_CNTL_SAR_I2C_FORCE_PU_M);
|
||||||
CLEAR_PERI_REG_MASK(ANA_CONFIG_REG, I2C_SAR_M);
|
CLEAR_PERI_REG_MASK(ANA_CONFIG_REG, I2C_SAR_M);
|
||||||
SET_PERI_REG_MASK(ANA_CONFIG2_REG, ANA_SAR_CFG2_M);
|
SET_PERI_REG_MASK(ANA_CONFIG2_REG, ANA_SAR_CFG2_M);
|
||||||
|
Loading…
Reference in New Issue
Block a user