aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-04-21 09:37:25 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-04-21 09:37:25 +0000
commit31e5715fb402bf0cd78b9914b9da15fa92bf15cb (patch)
tree1ba77b7faa549a44c058ac76095a2c15bc5fea45 /os/hal
parent92f59d89f168c8e5aa01fee358e1e0d7b8a7aa72 (diff)
downloadChibiOS-31e5715fb402bf0cd78b9914b9da15fa92bf15cb.tar.gz
ChibiOS-31e5715fb402bf0cd78b9914b9da15fa92bf15cb.tar.bz2
ChibiOS-31e5715fb402bf0cd78b9914b9da15fa92bf15cb.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6859 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/platforms/STM32F4xx/hal_lld.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/os/hal/platforms/STM32F4xx/hal_lld.h b/os/hal/platforms/STM32F4xx/hal_lld.h
index 70c333cf8..c1b0dc9be 100644
--- a/os/hal/platforms/STM32F4xx/hal_lld.h
+++ b/os/hal/platforms/STM32F4xx/hal_lld.h
@@ -401,7 +401,7 @@
#define STM32_CAN_MAX_FILTERS 28
/* DAC attributes.*/
-#define STM32_HAS_DAC TRUE
+#define STM32_HAS_DAC FALSE
/* DMA attributes.*/
#define STM32_ADVANCED_DMA TRUE
@@ -409,7 +409,11 @@
#define STM32_HAS_DMA2 TRUE
/* ETH attributes.*/
+#if !defined(STM32F401xx)
#define STM32_HAS_ETH TRUE
+#else /* defined(STM32F401xx) */
+#define STM32_HAS_ETH FALSE
+#endif /* defined(STM32F401xx) */
/* EXTI attributes.*/
#define STM32_EXTI_NUM_CHANNELS 23
@@ -425,11 +429,11 @@
#define STM32_HAS_GPIOF TRUE
#define STM32_HAS_GPIOG TRUE
#define STM32_HAS_GPIOI TRUE
-#else
+#else /* defined(STM32F401xx) */
#define STM32_HAS_GPIOF FALSE
#define STM32_HAS_GPIOG FALSE
#define STM32_HAS_GPIOI FALSE
-#endif
+#endif /* defined(STM32F401xx) */
/* I2C attributes.*/
#define STM32_HAS_I2C1 TRUE
@@ -590,6 +594,7 @@
#define STM32_UART5_RX_DMA_CHN 0x00000004
#define STM32_UART5_TX_DMA_MSK (STM32_DMA_STREAM_ID_MSK(1, 7))
#define STM32_UART5_TX_DMA_CHN 0x40000000
+
#else /* defined(STM32F401xx) */
#define STM32_HAS_USART3 FALSE
#define STM32_HAS_UART4 FALSE