aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-12-12 14:06:55 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-12-12 14:06:55 +0000
commitc5c818534297303fe8f91e78009d9389c146e359 (patch)
tree1a89157817ebb4f6eb8d39ca541f3624dac9d865
parente8ce87c3272de1d7fadedd2b4cd6b41d0cb6acdf (diff)
downloadChibiOS-c5c818534297303fe8f91e78009d9389c146e359.tar.gz
ChibiOS-c5c818534297303fe8f91e78009d9389c146e359.tar.bz2
ChibiOS-c5c818534297303fe8f91e78009d9389c146e359.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6568 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/hal/platforms/STM32F4xx/hal_lld.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/platforms/STM32F4xx/hal_lld.h b/os/hal/platforms/STM32F4xx/hal_lld.h
index c26d21f57..c7da5d8a9 100644
--- a/os/hal/platforms/STM32F4xx/hal_lld.h
+++ b/os/hal/platforms/STM32F4xx/hal_lld.h
@@ -486,7 +486,7 @@
STM32_DMA_STREAM_ID_MSK(1, 7))
#define STM32_SPI3_TX_DMA_CHN 0x00000000
-#ifdef STM32F429_439xx
+#if defined(STM32F427_437xx) || defined(STM32F429_439xx)
#define STM32_HAS_SPI4 TRUE
#define STM32_SPI4_RX_DMA_MSK (STM32_DMA_STREAM_ID_MSK(2, 0) | \
STM32_DMA_STREAM_ID_MSK(2, 3))
@@ -509,11 +509,11 @@
#define STM32_SPI6_TX_DMA_MSK (STM32_DMA_STREAM_ID_MSK(2, 5))
#define STM32_SPI6_TX_DMA_CHN 0x00100000
-#else
+#else /* !(defined(STM32F427_437xx) || defined(STM32F429_439xx)) */
#define STM32_HAS_SPI4 FALSE
#define STM32_HAS_SPI5 FALSE
#define STM32_HAS_SPI6 FALSE
-#endif /* STM32F429_439xx */
+#endif /* !(defined(STM32F427_437xx) || defined(STM32F429_439xx)) */
/* TIM attributes.*/
#define STM32_HAS_TIM1 TRUE