Skip to content

Commit 09cc1f3

Browse files
authored
Update drv_uart.c
1 parent 3c16873 commit 09cc1f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/rtt/drv_uart.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,7 @@ static rt_err_t es32f3x_control(struct rt_serial_device *serial, int cmd, void *
673673
break;
674674
#endif
675675

676+
#ifdef RT_DEVICE_CTRL_CLOSE
676677
case RT_DEVICE_CTRL_CLOSE:
677678
while (ald_uart_get_status(&uart->huart, (UART_STATUS_TSBUSY)));
678679

@@ -684,6 +685,7 @@ static rt_err_t es32f3x_control(struct rt_serial_device *serial, int cmd, void *
684685
#endif
685686
ald_uart_reset(&uart->huart);
686687
break;
688+
#endif
687689
}
688690

689691
return RT_EOK;

0 commit comments

Comments
 (0)