Skip to content

Commit 15535ed

Browse files
soburicarlescufi
authored andcommitted
modules: hal_rpi_pico: Enable DMA driver
Enable DMA driver. Add the path of the DMA driver header into include paths. `hardware_claim` is depends by DMA driver, also enable it. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 84665de commit 15535ed

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

modules/hal_rpi_pico/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,16 @@ if(CONFIG_HAS_RPI_PICO)
100100
zephyr_include_directories_ifdef(CONFIG_PICOSDK_USE_ADC
101101
${rp2_common_dir}/hardware_adc/include)
102102

103+
zephyr_library_sources_ifdef(CONFIG_PICOSDK_USE_DMA
104+
${rp2_common_dir}/hardware_dma/dma.c)
105+
zephyr_include_directories_ifdef(CONFIG_PICOSDK_USE_DMA
106+
${rp2_common_dir}/hardware_dma/include)
107+
108+
zephyr_library_sources_ifdef(CONFIG_PICOSDK_USE_CLAIM
109+
${rp2_common_dir}/hardware_claim/claim.c)
110+
zephyr_include_directories_ifdef(CONFIG_PICOSDK_USE_CLAIM
111+
${rp2_common_dir}/hardware_claim/include)
112+
103113
# Some flash driver functions must be executed from the RAM.
104114
# Originally pico-sdk places them in the RW data section, so this
105115
# implementation does the same.

modules/hal_rpi_pico/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,13 @@ config PICOSDK_USE_ADC
2828
bool
2929
help
3030
Use the ADC driver from pico-sdk
31+
32+
config PICOSDK_USE_DMA
33+
bool
34+
help
35+
Use the DMA driver from pico-sdk
36+
37+
config PICOSDK_USE_CLAIM
38+
bool
39+
help
40+
Use the "claim" driver from pico-sdk

0 commit comments

Comments
 (0)