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:
parent
b4f84d0e72
commit
37b29e879e
|
@ -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 <
|
||||
|
|
Loading…
Reference in New Issue