stm32/Kconfig: enable ADCx DMA support if DMAMUX enabled

This commit is contained in:
raiden00pl 2021-04-13 11:22:18 +02:00 committed by Alan Carvalho de Assis
parent bf04ef9a3c
commit c90a6bdf2b
2 changed files with 6 additions and 1 deletions

View File

@ -2622,6 +2622,7 @@ config STM32_ADC1
select STM32_HAVE_ADC1_DMA if STM32_STM32F10XX && STM32_DMA1
select STM32_HAVE_ADC1_DMA if STM32_STM32F37XX && STM32_DMA1
select STM32_HAVE_ADC1_DMA if !STM32_STM32F10XX && STM32_DMA2
select STM32_HAVE_ADC1_DMA if STM32_DMAMUX
config STM32_ADC2
bool "ADC2"
@ -2629,6 +2630,7 @@ config STM32_ADC2
select STM32_ADC
depends on STM32_HAVE_ADC2
select STM32_HAVE_ADC2_DMA if STM32_DMA2
select STM32_HAVE_ADC2_DMA if STM32_DMAMUX
config STM32_ADC3
bool "ADC3"
@ -2636,6 +2638,7 @@ config STM32_ADC3
select STM32_ADC
depends on STM32_HAVE_ADC3
select STM32_HAVE_ADC3_DMA if STM32_DMA2
select STM32_HAVE_ADC3_DMA if STM32_DMAMUX
config STM32_ADC4
bool "ADC4"
@ -2643,6 +2646,7 @@ config STM32_ADC4
select STM32_ADC
depends on STM32_HAVE_ADC4
select STM32_HAVE_ADC4_DMA if STM32_DMA2
select STM32_HAVE_ADC4_DMA if STM32_DMAMUX
config STM32_ADC5
bool "ADC5"
@ -2650,6 +2654,7 @@ config STM32_ADC5
select STM32_ADC
depends on STM32_HAVE_ADC5
select STM32_HAVE_ADC5_DMA if STM32_DMA2
select STM32_HAVE_ADC5_DMA if STM32_DMAMUX
config STM32_SDADC1
bool "SDADC1"

View File

@ -1063,7 +1063,7 @@ void weak_function arm_dma_initialize(void)
* Input Parameters:
* dmamap - Identifies the stream/channel resource. For the STM32+, this
* is a bit-encoded value as provided by the DMAMAP_* definitions
* in hardware/stm32xrxx_dmamux.h
* in hardware/stm32g4xxxx_dmamux.h
*
* Returned Value:
* One success, this function returns a non-NULL, void* DMA channel