summaryrefslogtreecommitdiff
path: root/libcpu/arm
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2009-11-18 07:47:29 +0000
committerbernard.xiong <[email protected]>2009-11-18 07:47:29 +0000
commit37b29e879e9918f2d9ea7f959b28d340bc24d2d3 (patch)
tree8786205a86dff55839b79888b0b59b9e49fbb1f4 /libcpu/arm
parentb4f84d0e7234a8ddc439b21f99307864f4c48a73 (diff)
fix the serial Tx interrupt clean issue @ reported by softwind.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@169 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'libcpu/arm')
-rw-r--r--libcpu/arm/stm32/serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/arm/stm32/serial.c b/libcpu/arm/stm32/serial.c
index 7d4795a9ad..54c8290687 100644
--- a/libcpu/arm/stm32/serial.c
+++ b/libcpu/arm/stm32/serial.c
@@ -489,7 +489,7 @@ void rt_hw_serial_isr(rt_device_t device)
uart->int_tx->write_index = 0;
/* clear interrupt */
- USART_ClearITPendingBit(uart->uart_device, USART_IT_RXNE);
+ USART_ClearITPendingBit(uart->uart_device, USART_IT_TC);
/* start next transmission */
if (uart->int_tx->write_index <