aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-12-28 11:03:43 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-12-28 11:03:43 +0000
commit9cbfb6cfed5d1a0bdb10fadcad812d698b230710 (patch)
treee3ee7f81ccebc81bd4bb44cf015c880f025b2103 /os/hal/ports/STM32
parent4f0d401c8182d865b117e50685e8834fbfea7506 (diff)
downloadChibiOS-9cbfb6cfed5d1a0bdb10fadcad812d698b230710.tar.gz
ChibiOS-9cbfb6cfed5d1a0bdb10fadcad812d698b230710.tar.bz2
ChibiOS-9cbfb6cfed5d1a0bdb10fadcad812d698b230710.zip
Added check for BDMA but BDMA is not complete yet.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11205 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32')
-rw-r--r--os/hal/ports/STM32/LLD/SPIv3/hal_spi_lld.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/SPIv3/hal_spi_lld.h b/os/hal/ports/STM32/LLD/SPIv3/hal_spi_lld.h
index b2ed754ab..ab267ab49 100644
--- a/os/hal/ports/STM32/LLD/SPIv3/hal_spi_lld.h
+++ b/os/hal/ports/STM32/LLD/SPIv3/hal_spi_lld.h
@@ -303,9 +303,16 @@
#error "Invalid DMA priority assigned to SPI6"
#endif
+#if STM32_SPI_USE_SPI1 | STM32_SPI_USE_SPI2 | STM32_SPI_USE_SPI1 | \
+ STM32_SPI_USE_SPI4 | STM32_SPI_USE_SPI5
#if !defined(STM32_DMA_REQUIRED)
#define STM32_DMA_REQUIRED
#endif
+#elif STM32_SPI_USE_SPI6
+#if !defined(STM32_BDMA_REQUIRED)
+#define STM32_BDMA_REQUIRED
+#endif
+#endif
#if SPI_SELECT_MODE == SPI_SELECT_MODE_LLD
#error "SPI_SELECT_MODE_LLD not supported by this driver"