Changeset 45 for trunk/csctapi
- Timestamp:
- 04/05/09 01:38:54 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/csctapi/io_serial.c
r21 r45 45 45 #include "io_serial.h" 46 46 #include "mc_global.h" 47 48 #ifndef OS_CYGWIN32 47 49 #include <linux/serial.h> 50 #endif 48 51 49 52 #define IO_SERIAL_FILENAME_LENGTH 32 … … 512 515 cfsetispeed(&newtio, IO_Serial_Bitrate(props->input_bitrate)); 513 516 } else { 517 #ifndef OS_CYGWIN32 514 518 struct serial_struct nuts; 515 519 ioctl(io->fd, TIOCGSERIAL, &nuts); … … 520 524 cfsetospeed(&newtio, IO_Serial_Bitrate(38400)); 521 525 cfsetispeed(&newtio, IO_Serial_Bitrate(38400)); 526 #else 527 cfsetospeed(&newtio, IO_Serial_Bitrate(9600 / 3.57 * 6)); 528 cfsetispeed(&newtio, IO_Serial_Bitrate(9600 / 3.57 * 6)); 529 #endif 522 530 } 523 531 } else if (mhz == 357 || mhz == 358) { 524 532 /* for 3.57 MHz */ 525 533 if (reader_irdeto_mode) { 534 #ifndef OS_CYGWIN32 526 535 struct serial_struct nuts; 527 536 ioctl(io->fd, TIOCGSERIAL, &nuts); … … 532 541 cfsetospeed(&newtio, IO_Serial_Bitrate(38400)); 533 542 cfsetispeed(&newtio, IO_Serial_Bitrate(38400)); 543 #else 544 cfsetospeed(&newtio, IO_Serial_Bitrate(5713)); 545 cfsetispeed(&newtio, IO_Serial_Bitrate(5713)); 546 #endif 534 547 } else { 535 548 cfsetospeed(&newtio, IO_Serial_Bitrate(props->output_bitrate));
Note:
See TracChangeset
for help on using the changeset viewer.