mirror of
https://github.com/HEYAHONG/ExtBoard-001.git
synced 2025-05-08 15:45:59 +08:00
修复BUG
This commit is contained in:
parent
7fd9bf8eff
commit
74f079c56a
@ -304,7 +304,10 @@ static void uart_isr(struct rt_serial_device *serial)
|
||||
}
|
||||
else if ((USART_GetITStatus(uart->config->Instance, USART_IT_TC) != RESET) && (USART_GetFlagStatus(uart->config->Instance, USART_FLAG_TC) != RESET))
|
||||
{
|
||||
rt_hw_serial_isr(serial, RT_SERIAL_EVENT_TX_DONE);
|
||||
if(serial->serial_tx != NULL && ((((rt_device_t)serial)->open_flag & RT_DEVICE_FLAG_INT_TX)) !=0 )
|
||||
{
|
||||
rt_hw_serial_isr(serial, RT_SERIAL_EVENT_TX_DONE);
|
||||
}
|
||||
USART_ClearITPendingBit(uart->config->Instance, USART_IT_TC);
|
||||
USART_ClearFlag(uart->config->Instance, USART_FLAG_TC);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user