fix(adc): workaround to fix adc continuous get less results on c3

This commit is contained in:
gaoxu
2024-01-23 18:47:19 +08:00
committed by Gao Xu
parent f68c131e56
commit 2eccde88f3
5 changed files with 43 additions and 8 deletions

View File

@@ -419,6 +419,11 @@ esp_err_t adc_continuous_stop(adc_continuous_handle_t handle)
//stop ADC
adc_hal_digi_stop(&handle->hal);
#if ADC_LL_WORKAROUND_CLEAR_EOF_COUNTER
periph_module_reset(PERIPH_SARADC_MODULE);
adc_hal_digi_clr_eof();
#endif
adc_hal_digi_deinit(&handle->hal);
if (handle->use_adc2) {