From 68b84d808ac3be901f4f6711d8f270b111f7816a Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Sat, 24 Oct 2009 23:50:26 +0000 Subject: [PATCH] cleanup code git-svn-id: https://rt-thread.googlecode.com/svn/trunk@132 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/stm3210/board.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bsp/stm3210/board.c b/bsp/stm3210/board.c index 063c8c3d41..20373aa406 100644 --- a/bsp/stm3210/board.c +++ b/bsp/stm3210/board.c @@ -153,13 +153,13 @@ static void rt_hw_console_init() { GPIO_InitTypeDef GPIO_InitStructure; - /* Configure USART1 Tx (PA.09) as alternate function push-pull */ + /* Configure USART Tx as alternate function push-pull */ GPIO_InitStructure.GPIO_Pin = CONSOLE_RX_PIN; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP; GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; GPIO_Init(CONSOLE_GPIO, &GPIO_InitStructure); - /* Configure USART1 Rx (PA.10) as input floating */ + /* Configure USART Rx as input floating */ GPIO_InitStructure.GPIO_Pin = CONSOLE_TX_PIN; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING; GPIO_Init(CONSOLE_GPIO, &GPIO_InitStructure); @@ -189,7 +189,7 @@ static void rt_hw_console_init() USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None; USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx; USART_Init(CONSOLE_USART, &USART_InitStructure); - /* Enable USART1 */ + /* Enable USART */ USART_Cmd(CONSOLE_USART, ENABLE); } #endif