Merge branch 'bugfix/adc2_legacy_oneshot_clk_gating_issue' into 'master'

adc: fix legacy oneshot driver clock gating issue on c3 and c2

See merge request espressif/esp-idf!19144
pull/9446/head
Armando (Dou Yiwen) 2022-07-21 19:13:20 +08:00
commit 097e64f8c7
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -822,6 +822,7 @@ esp_err_t adc2_get_raw(adc2_channel_t channel, adc_bits_width_t width_bit, int *
periph_module_enable(PERIPH_SARADC_MODULE);
adc_power_acquire();
adc_ll_digi_clk_sel(0);
adc_arbiter_t config = ADC_ARBITER_CONFIG_DEFAULT();
adc_hal_arbiter_config(&config);