summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorkunhuahuang <huangkunhua@gmail.com>2015-04-28 03:01:19 +0800
committerTom Rini <trini@konsulko.com>2015-05-10 07:29:38 -0400
commit60570df19c7e7bc9f1f10d228bfe1ac2bea52d9b (patch)
treeab5ff6c81127b3c4090755734d780b834c862b43 /include
parent85e5f5b7a7f8d889271f94791606cde62d81d53f (diff)
stm32f4: add serial print port
Add the stm32F4 board's serial ports support. User can use it easily. The user only need to edit the number of the usart. The patch also fix the serial print out. Last, this version of patch fix the first patch checkpatch.pl error. Thanks to Kamil Lulko. Signed-off-by: kunhuahuang <huangkunhua@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/stm32f429-discovery.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/configs/stm32f429-discovery.h b/include/configs/stm32f429-discovery.h
index 7f569fdac8..84cc19df4f 100644
--- a/include/configs/stm32f429-discovery.h
+++ b/include/configs/stm32f429-discovery.h
@@ -50,8 +50,14 @@
#define CONFIG_STM32_GPIO
#define CONFIG_STM32_SERIAL
-
-#define CONFIG_STM32_USART1
+/*
+ * Configuration of the USART
+ * 1: TX:PA9 PX:PA10
+ * 2: TX:PD5 RX:PD6
+ * 3: TX:PC10 RX:PC11
+ * 6: TX:PC6 RX:PC7
+ */
+#define CONFIG_STM32_USART 1
#define CONFIG_STM32_HSE_HZ 8000000