Merge branch 'bugfix/adc_power_issue_4.3' into 'release/v4.3'

adc: fix adc power issue (v4.3)

See merge request espressif/esp-idf!12921
This commit is contained in:
Michael (XIAO Xufeng)
2021-03-30 17:15:09 +00:00
35 changed files with 569 additions and 1061 deletions

View File

@@ -89,6 +89,7 @@ esp_err_t adc_digi_deinit(void)
s_adc_digi_arbiter_lock = NULL;
}
#endif
adc_power_release();
ADC_ENTER_CRITICAL();
adc_hal_digi_deinit();
ADC_EXIT_CRITICAL();
@@ -124,6 +125,8 @@ esp_err_t adc_digi_controller_config(const adc_digi_config_t *config)
}
}
/* If enable digtal controller, adc xpd should always on. */
adc_power_acquire();
ADC_ENTER_CRITICAL();
adc_hal_digi_controller_config(config);
ADC_EXIT_CRITICAL();