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

adc: fix legacy oneshot driver clock gating issue on c3 (v4.3)

See merge request espressif/esp-idf!22610
This commit is contained in:
morris 2023-03-06 18:37:18 +08:00
commit 418d47a09b

View File

@ -502,6 +502,7 @@ int adc1_get_raw(adc1_channel_t channel)
adc_power_acquire();
SAR_ADC1_LOCK_ACQUIRE();
adc_ll_digi_controller_clk_enable(0);
adc_atten_t atten = s_atten1_single[channel];
uint32_t cal_val = adc_get_calibration_offset(ADC_NUM_1, channel, atten);
@ -553,6 +554,7 @@ esp_err_t adc2_get_raw(adc2_channel_t channel, adc_bits_width_t width_bit, int *
adc_power_acquire();
SAR_ADC2_LOCK_ACQUIRE();
adc_ll_digi_controller_clk_enable(0);
adc_atten_t atten = s_atten2_single[channel];
uint32_t cal_val = adc_get_calibration_offset(ADC_NUM_2, channel, atten);