Skip to content

Commit f1391c0

Browse files
committed
adc: add support for adc with dma for non gdma socs
Adds support for adc with dma for: - esp32 - esp32s2 Signed-off-by: Marcio Ribeiro <[email protected]>
1 parent aa5443a commit f1391c0

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

zephyr/esp32/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,13 @@ if(CONFIG_SOC_SERIES_ESP32)
261261
../../components/esp_adc/${CONFIG_SOC_SERIES}/adc_cali_line_fitting.c
262262
../../components/soc/${CONFIG_SOC_SERIES}/adc_periph.c
263263
)
264+
265+
if (CONFIG_ADC_ESP32_DMA)
266+
zephyr_sources(
267+
../../components/hal/adc_hal.c
268+
../../components/hal/i2s_hal.c
269+
)
270+
endif()
264271
endif()
265272

266273
zephyr_link_libraries("-Wl,--wrap=longjmp")

zephyr/esp32s2/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,12 @@ if(CONFIG_SOC_SERIES_ESP32S2)
233233
../../components/efuse/${CONFIG_SOC_SERIES}/esp_efuse_rtc_calib.c
234234
../../components/efuse/${CONFIG_SOC_SERIES}/esp_efuse_rtc_table.c
235235
)
236+
237+
if (CONFIG_ADC_ESP32_DMA)
238+
zephyr_sources(
239+
../../components/hal/adc_hal.c
240+
)
241+
endif()
236242
endif()
237243

238244
if(CONFIG_PM OR CONFIG_POWEROFF)

0 commit comments

Comments
 (0)