arch/arm/src/stm32: Enable DMA for SPI on stm32f30xxx MCUs.
This commit is contained in:
parent
940f41fb94
commit
a1b80e12cf
@ -109,7 +109,8 @@
|
||||
|
||||
# if defined(CONFIG_SPI_DMAPRIO)
|
||||
# define SPI_DMA_PRIO CONFIG_SPI_DMAPRIO
|
||||
# elif defined(CONFIG_STM32_STM32F10XX) || defined(CONFIG_STM32_STM32L15XX)
|
||||
# elif defined(CONFIG_STM32_STM32F10XX) || defined(CONFIG_STM32_STM32L15XX) || \
|
||||
defined(CONFIG_STM32_STM32F30XX)
|
||||
# define SPI_DMA_PRIO DMA_CCR_PRIMED
|
||||
# elif defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F4XXX)
|
||||
# define SPI_DMA_PRIO DMA_SCR_PRIMED
|
||||
@ -117,7 +118,8 @@
|
||||
# error "Unknown STM32 DMA"
|
||||
# endif
|
||||
|
||||
# if defined(CONFIG_STM32_STM32F10XX) || defined(CONFIG_STM32_STM32L15XX)
|
||||
# if defined(CONFIG_STM32_STM32F10XX) || defined(CONFIG_STM32_STM32L15XX) || \
|
||||
defined(CONFIG_STM32_STM32F30XX)
|
||||
# if (SPI_DMA_PRIO & ~DMA_CCR_PL_MASK) != 0
|
||||
# error "Illegal value for CONFIG_SPI_DMAPRIO"
|
||||
# endif
|
||||
|
Loading…
Reference in New Issue
Block a user