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
This commit is contained in:
bernard.xiong 2009-11-18 07:47:29 +00:00
parent b4f84d0e72
commit 37b29e879e
1 changed files with 1 additions and 1 deletions

View File

@ -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 <