From 48d4e00ee8710e095ebebbed7fe8e0f9fcbcd004 Mon Sep 17 00:00:00 2001 From: "chaos.proton@gmail.com" Date: Thu, 1 Dec 2011 09:50:58 +0000 Subject: [PATCH] clear DMA1_FLAG_TC2 in usart3 initialization git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1821 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/stm32f10x/usart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/stm32f10x/usart.c b/bsp/stm32f10x/usart.c index dc6b1485c7..c4b2b757a8 100644 --- a/bsp/stm32f10x/usart.c +++ b/bsp/stm32f10x/usart.c @@ -243,7 +243,7 @@ static void DMA_Configuration(void) DMA_InitStructure.DMA_BufferSize = 0; DMA_Init(UART3_TX_DMA, &DMA_InitStructure); DMA_ITConfig(UART3_TX_DMA, DMA_IT_TC | DMA_IT_TE, ENABLE); - DMA_ClearFlag(DMA1_FLAG_TC5); + DMA_ClearFlag(DMA1_FLAG_TC2); #endif }