aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/SPIv2/hal_spi_lld.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-11-09 12:20:06 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-11-09 12:20:06 +0000
commitbd22f7167292826f39707f10ddd620fc246cd20c (patch)
tree96b3755467c316a679cc60e508e3fe5efeceda4a /os/hal/ports/STM32/LLD/SPIv2/hal_spi_lld.h
parent9d6eb6ebf4f7fa9aeac7070fd2a8401bf350af38 (diff)
downloadChibiOS-bd22f7167292826f39707f10ddd620fc246cd20c.tar.gz
ChibiOS-bd22f7167292826f39707f10ddd620fc246cd20c.tar.bz2
ChibiOS-bd22f7167292826f39707f10ddd620fc246cd20c.zip
Fixed some regressions.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12413 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/ports/STM32/LLD/SPIv2/hal_spi_lld.h')
-rw-r--r--os/hal/ports/STM32/LLD/SPIv2/hal_spi_lld.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/SPIv2/hal_spi_lld.h b/os/hal/ports/STM32/LLD/SPIv2/hal_spi_lld.h
index c1cdf3c54..66d805937 100644
--- a/os/hal/ports/STM32/LLD/SPIv2/hal_spi_lld.h
+++ b/os/hal/ports/STM32/LLD/SPIv2/hal_spi_lld.h
@@ -301,6 +301,10 @@
#error "Invalid DMA priority assigned to SPI6"
#endif
+/* The following checks are only required when there is a DMA able to
+ reassign streams to different channels.*/
+#if STM32_ADVANCED_DMA
+
/* Devices with DMAMUX require a different kind of check.*/
#if STM32_DMA_SUPPORTS_DMAMUX
@@ -487,6 +491,8 @@
#endif /* !STM32_DMA_SUPPORTS_DMAMUX */
+#endif /* STM32_ADVANCED_DMA */
+
#if !defined(STM32_DMA_REQUIRED)
#define STM32_DMA_REQUIRED
#endif