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 <tokita.hiroshi@fujitsu.com>
This commit is contained in:
parent
84665de122
commit
15535edbfe
2 changed files with 20 additions and 0 deletions
|
@ -100,6 +100,16 @@ if(CONFIG_HAS_RPI_PICO)
|
|||
zephyr_include_directories_ifdef(CONFIG_PICOSDK_USE_ADC
|
||||
${rp2_common_dir}/hardware_adc/include)
|
||||
|
||||
zephyr_library_sources_ifdef(CONFIG_PICOSDK_USE_DMA
|
||||
${rp2_common_dir}/hardware_dma/dma.c)
|
||||
zephyr_include_directories_ifdef(CONFIG_PICOSDK_USE_DMA
|
||||
${rp2_common_dir}/hardware_dma/include)
|
||||
|
||||
zephyr_library_sources_ifdef(CONFIG_PICOSDK_USE_CLAIM
|
||||
${rp2_common_dir}/hardware_claim/claim.c)
|
||||
zephyr_include_directories_ifdef(CONFIG_PICOSDK_USE_CLAIM
|
||||
${rp2_common_dir}/hardware_claim/include)
|
||||
|
||||
# Some flash driver functions must be executed from the RAM.
|
||||
# Originally pico-sdk places them in the RW data section, so this
|
||||
# implementation does the same.
|
||||
|
|
|
@ -28,3 +28,13 @@ config PICOSDK_USE_ADC
|
|||
bool
|
||||
help
|
||||
Use the ADC driver from pico-sdk
|
||||
|
||||
config PICOSDK_USE_DMA
|
||||
bool
|
||||
help
|
||||
Use the DMA driver from pico-sdk
|
||||
|
||||
config PICOSDK_USE_CLAIM
|
||||
bool
|
||||
help
|
||||
Use the "claim" driver from pico-sdk
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue