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

pull/13550/head
wuzhenghui 2024-04-02 12:14:36 +08:00
rodzic 4494fc9829
commit 11e7091967
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 3EFEDECDEBA39BB9
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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);