feat(adc): support ADC single ended oneshot and continuous mode on ESP32-S31

This commit is contained in:
gaoxu
2026-05-14 16:31:29 +08:00
parent 315b6547ff
commit 03c8862a9f
40 changed files with 1315 additions and 105 deletions
+6 -1
View File
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2024-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -33,7 +33,12 @@ esp_err_t adc_dma_init(adc_dma_t *adc_dma)
.flags.isr_cache_safe = true,
#endif
};
#if ADC_LL_DMA_USE_LP_AHB_GDMA
ret = gdma_new_lp_ahb_channel(&rx_alloc_config, NULL, &(adc_dma->gdma_chan));
#else
ret = gdma_new_ahb_channel(&rx_alloc_config, NULL, &(adc_dma->gdma_chan));
#endif
if (ret != ESP_OK) {
return ret;
}