diff options
| author | [email protected] <[email protected]> | 2011-12-01 09:50:58 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-12-01 09:50:58 +0000 |
| commit | 48d4e00ee8710e095ebebbed7fe8e0f9fcbcd004 (patch) | |
| tree | 23827c45a3eb17529650fb2795db1077153a85d9 /bsp | |
| parent | 6cf91f04f68e76a5af66581c08357bb4ac56fd3e (diff) | |
clear DMA1_FLAG_TC2 in usart3 initialization
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1821 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/stm32f10x/usart.c | 2 |
1 files changed, 1 insertions, 1 deletions
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
}
|
