Skip to content

Commit 6d82a84

Browse files
authored
Update drv_uart.c
1 parent a6a1098 commit 6d82a84

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
@@ -672,6 +672,7 @@ static rt_err_t es32f3x_control(struct rt_serial_device *serial, int cmd, void *
672672
break;
673673
#endif
674674

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

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

688690
return RT_EOK;

0 commit comments

Comments
 (0)