Skip to content

Commit

Permalink
Merge branch 'bugfix/fix_adc_clock_missing_in_startup_calibration' in…
Browse files Browse the repository at this point in the history
…to 'master'

fix(esp_adc): fix adc clock missing in startup calibration

Closes PM-93

See merge request espressif/esp-idf!29993
  • Loading branch information
esp-wzh committed Apr 2, 2024
2 parents 9c84691 + 11e7091 commit 859d9a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/esp_adc/adc_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ esp_err_t adc_channel_to_io(adc_unit_t unit_id, adc_channel_t channel, int * con
---------------------------------------------------------------*/
static __attribute__((constructor)) void adc_hw_calibration(void)
{
adc_apb_periph_claim();
//Calculate all ICode
for (int i = 0; i < SOC_ADC_PERIPH_NUM; i++) {
adc_hal_calibration_init(i);
Expand Down

0 comments on commit 859d9a8

Please sign in to comment.