From 2a11ace2becfd8ca17f4b01a8163cfdefbf420a8 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 12 Dec 2013 14:07:02 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6570 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32F4xx/stm32_registry.h | 7 ++++--- 1 file 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