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 Oct 21, 2021
1 parent 3c16873 commit 09cc1f3
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 @@ -673,6 +673,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 @@ -684,6 +685,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 09cc1f3

Please sign in to comment.