提交 f3c2930d 编写于 作者: A Aubr.Cool

correct stm32f10x txisr error

上级 c442db81
......@@ -262,7 +262,7 @@ static void uart_isr(struct rt_serial_device *serial) {
{
rt_hw_serial_isr(serial, RT_SERIAL_EVENT_TX_DONE);
}
USART_ITConfig(uart->uart_device, USART_IT_RXNE, DISABLE);
USART_ITConfig(uart->uart_device, USART_IT_TC, DISABLE);
USART_ClearITPendingBit(uart->uart_device, USART_IT_TC);
}
if (USART_GetFlagStatus(uart->uart_device, USART_FLAG_ORE) == SET)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册