[Posix]termios parameter issue.
This commit is contained in:
parent
9f745c6aaf
commit
b085bba04c
|
@ -1024,7 +1024,7 @@ static rt_err_t rt_serial_control(struct rt_device *dev,
|
||||||
break;
|
break;
|
||||||
case TCFLSH:
|
case TCFLSH:
|
||||||
{
|
{
|
||||||
int queue = *(int *)args;
|
int queue = (int)args;
|
||||||
|
|
||||||
_serial_flush(serial, queue);
|
_serial_flush(serial, queue);
|
||||||
}
|
}
|
||||||
|
|
|
@ -111,12 +111,12 @@ int tcsendbreak(int fd, int dur)
|
||||||
|
|
||||||
int tcflush(int fd, int queue)
|
int tcflush(int fd, int queue)
|
||||||
{
|
{
|
||||||
return ioctl(fd, TCFLSH, (void*)&queue);
|
return ioctl(fd, TCFLSH, (void*)queue);
|
||||||
}
|
}
|
||||||
|
|
||||||
int tcflow(int fd, int action)
|
int tcflow(int fd, int action)
|
||||||
{
|
{
|
||||||
return ioctl(fd, TCXONC, (void*)&action);
|
return ioctl(fd, TCXONC, (void*)action);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue