summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2009-10-24 23:50:26 +0000
committerbernard.xiong <[email protected]>2009-10-24 23:50:26 +0000
commit68b84d808ac3be901f4f6711d8f270b111f7816a (patch)
treec6a929420457a4ae552b8449ebdeb05279d82180
parent5e0d137313bc4f9277d6b2bb5b5a73544e0c2835 (diff)
cleanup code
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@132 bbd45198-f89e-11dd-88c7-29a3b14d5316
-rw-r--r--bsp/stm3210/board.c6
1 files 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