Faster serial speed cases for non Linux systems.

oldstable
2002-04-21 22:06:09 +00:00 committed by Alexandre Julliard
parent 0f7b48b890
commit 77c2bbcb0b
1 changed files with 24 additions and 0 deletions

View File

@ -1046,6 +1046,30 @@ BOOL WINAPI SetCommState(
case CBR_38400:
port.c_ospeed = B38400;
break;
#ifdef B57600
case 57600:
case CBR_57600:
port.c_cflag |= B57600;
break;
#endif
#ifdef B115200
case 115200:
case CBR_115200:
port.c_cflag |= B115200;
break;
#endif
#ifdef B230400
case 230400:
case CBR_230400:
port.c_cflag |= B230400;
break;
#endif
#ifdef B460800
case 460800:
case CBR_460800:
port.c_cflag |= B460800;
break;
#endif
default:
COMM_SetCommError(handle,IE_BAUDRATE);
close( fd );