ADC DMA should work on the F2 as well because the DMA is equivalent on the F2 and F4
This commit is contained in:
parent
9ed14b0924
commit
2c5a6831cd
@ -209,11 +209,15 @@
|
||||
#undef ADC_HAVE_DMA
|
||||
#if defined(CONFIG_STM32_ADC1_DMA) || defined(CONFIG_STM32_ADC2_DMA) || \
|
||||
defined(CONFIG_STM32_ADC3_DMA) || defined(CONFIG_STM32_ADC4_DMA)
|
||||
# if defined(CONFIG_STM32_STM32F40XX)
|
||||
# if defined(CONFIG_STM32_STM32F40XX) || defined(CONFIG_STM32_STM32F40XX)
|
||||
# define ADC_HAVE_DMA 1
|
||||
#else
|
||||
# warning DMA is only supported for the stm32f40xx family
|
||||
# endif
|
||||
# else
|
||||
# warning DMA is only supported for the STM32 F2/F4 family
|
||||
# undef CONFIG_STM32_ADC1_DMA
|
||||
# undef CONFIG_STM32_ADC2_DMA
|
||||
# undef CONFIG_STM32_ADC3_DMA
|
||||
# undef CONFIG_STM32_ADC4_DMA
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_STM32_ADC1_DMA
|
||||
|
Loading…
Reference in New Issue
Block a user