[rtsmart] fix uart can't input after userapp exited at rv64 platform.

This commit is contained in:
guozhanxin 2022-12-09 15:15:40 +08:00 committed by Man, Jianting (Meco)
parent e6f38ec9dc
commit b5d77bbf37
1 changed files with 2 additions and 2 deletions

View File

@ -904,7 +904,7 @@ static rt_size_t rt_serial_write(struct rt_device *dev,
}
}
#ifdef RT_USING_POSIX_TERMIOS
#if defined(RT_USING_POSIX_TERMIOS) && !defined(RT_USING_TTY)
struct speed_baudrate_item
{
speed_t speed;
@ -1052,7 +1052,7 @@ static rt_err_t rt_serial_control(struct rt_device *dev,
}
break;
#ifdef RT_USING_POSIX_STDIO
#ifdef RT_USING_POSIX_TERMIOS
#if defined(RT_USING_POSIX_TERMIOS) && !defined(RT_USING_TTY)
case TCGETA:
{
struct termios *tio = (struct termios*)args;