Skip to content

Commit

Permalink
Update drv_uart.c
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhy-2020 authored Dec 27, 2021
1 parent a6a1098 commit 6d82a84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/rtt/drv_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,7 @@ static rt_err_t es32f3x_control(struct rt_serial_device *serial, int cmd, void *
break;
#endif

#ifdef RT_DEVICE_CTRL_CLOSE
case RT_DEVICE_CTRL_CLOSE:
while (ald_uart_get_status(&uart->huart, (UART_STATUS_TSBUSY)));

Expand All @@ -683,6 +684,7 @@ static rt_err_t es32f3x_control(struct rt_serial_device *serial, int cmd, void *
#endif
ald_uart_reset(&uart->huart);
break;
#endif
}

return RT_EOK;
Expand Down

0 comments on commit 6d82a84

Please sign in to comment.