Merge branch 'bugfix/fix_temp_sensor_affect_by_adc' into 'master'

ADC: fix temp sensor affect by adc continuous reset

Closes IDFGH-14786

See merge request espressif/esp-idf!38921
This commit is contained in:
Gao Xu
2025-09-24 10:05:03 +08:00
25 changed files with 696 additions and 45 deletions

View File

@@ -262,9 +262,7 @@ esp_err_t adc_continuous_start(adc_continuous_handle_t handle)
ANALOG_CLOCK_ENABLE();
//reset ADC digital part to reset ADC sampling EOF counter
ADC_BUS_CLK_ATOMIC() {
adc_ll_reset_register();
}
sar_periph_ctrl_adc_reset();
#if CONFIG_PM_ENABLE
if (handle->pm_lock) {
@@ -360,7 +358,7 @@ esp_err_t adc_continuous_stop(adc_continuous_handle_t handle)
adc_hal_digi_enable(false);
adc_hal_digi_connect(false);
#if ADC_LL_WORKAROUND_CLEAR_EOF_COUNTER
periph_module_reset(PERIPH_SARADC_MODULE);
sar_periph_ctrl_adc_reset();
adc_hal_digi_clr_eof();
#endif