diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-12-12 14:07:02 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-12-12 14:07:02 +0000 |
commit | 2a11ace2becfd8ca17f4b01a8163cfdefbf420a8 (patch) | |
tree | fb7b820fdcca12b95d95e125eeeaff594325ac74 | |
parent | a0162be393ed95c60baf59b773e6649673972e4d (diff) | |
download | ChibiOS-2a11ace2becfd8ca17f4b01a8163cfdefbf420a8.tar.gz ChibiOS-2a11ace2becfd8ca17f4b01a8163cfdefbf420a8.tar.bz2 ChibiOS-2a11ace2becfd8ca17f4b01a8163cfdefbf420a8.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6570 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/ports/STM32F4xx/stm32_registry.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/os/hal/ports/STM32F4xx/stm32_registry.h b/os/hal/ports/STM32F4xx/stm32_registry.h index 7c14455ca..d1d476627 100644 --- a/os/hal/ports/STM32F4xx/stm32_registry.h +++ b/os/hal/ports/STM32F4xx/stm32_registry.h @@ -152,7 +152,7 @@ STM32_DMA_STREAM_ID_MSK(1, 7))
#define STM32_SPI3_TX_DMA_CHN 0x00000000
-#if defined(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))
@@ -174,11 +174,12 @@ #define STM32_SPI6_RX_DMA_CHN 0x01000000
#define STM32_SPI6_TX_DMA_MSK (STM32_DMA_STREAM_ID_MSK(2, 5))
#define STM32_SPI6_TX_DMA_CHN 0x00100000
-#else /* !defined(STM32F429_439xx) */
+
+#else /* !(defined(STM32F427_437xx) || defined(STM32F429_439xx)) */
#define STM32_HAS_SPI4 FALSE
#define STM32_HAS_SPI5 FALSE
#define STM32_HAS_SPI6 FALSE
-#endif /* !defined(STM32F429_439xx) */
+#endif /* !(defined(STM32F427_437xx) || defined(STM32F429_439xx)) */
/* TIM attributes.*/
#define STM32_HAS_TIM1 TRUE
|