mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-11 00:12:06 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user