ADC DMA should work on the F2 as well because the DMA is equivalent on the F2 and F4

This commit is contained in:
Gregory Nutt 2015-07-30 15:49:33 -06:00
parent 9ed14b0924
commit 2c5a6831cd

View File

@ -209,10 +209,14 @@
#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
# 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