arch/arm/src/stm32l4/stm32l4_adc.c: fix copy-paste mistake with CONFIG_STM32L4_ADC1_DMA_CFG

Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
This commit is contained in:
Juha Niskanen 2020-10-29 13:50:10 +02:00 committed by Xiang Xiao
parent e160bffe28
commit cfa5b82e09

View File

@ -476,7 +476,7 @@ static struct stm32_dev_s g_adcpriv2 =
#endif
#ifdef ADC2_HAVE_DMA
.dmachan = ADC2_DMA_CHAN,
.dmacfg = CONFIG_STM32L4_ADC1_DMA_CFG,
.dmacfg = CONFIG_STM32L4_ADC2_DMA_CFG,
.hasdma = true,
#endif
#ifdef ADC2_HAVE_DFSDM
@ -525,7 +525,7 @@ static struct stm32_dev_s g_adcpriv3 =
#endif
#ifdef ADC3_HAVE_DMA
.dmachan = ADC3_DMA_CHAN,
.dmacfg = CONFIG_STM32L4_ADC1_DMA_CFG,
.dmacfg = CONFIG_STM32L4_ADC3_DMA_CFG,
.hasdma = true,
#endif
#ifdef ADC3_HAVE_DFSDM