提交 37b29e87 编写于 作者: B bernard.xiong

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
上级 b4f84d0e
......@@ -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 <
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册