From 37b29e879e9918f2d9ea7f959b28d340bc24d2d3 Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Wed, 18 Nov 2009 07:47:29 +0000 Subject: [PATCH] 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 --- libcpu/arm/stm32/serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 < -- GitLab