Changeset 86 for trunk/csctapi
- Timestamp:
- 05/25/09 16:22:16 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/csctapi/io_serial.c
r79 r86 585 585 } 586 586 } 587 else if (mhz == 1000) 588 { 589 590 /* for 10MHz */ 591 if (reader_irdeto_mode) 592 { 593 cfsetospeed(&newtio, IO_Serial_Bitrate(props->output_bitrate)); 594 cfsetispeed(&newtio, IO_Serial_Bitrate(props->input_bitrate)); 595 } 596 else 597 { 598 #ifdef OS_LINUX 599 /* these structures are only available on linux as fas as we know so limit this code to OS_LINUX */ 600 struct serial_struct nuts; 601 ioctl(io->fd, TIOCGSERIAL, &nuts); 602 nuts.custom_divisor = nuts.baud_base / 9600 * 6 / 10; 603 nuts.flags &= ~ASYNC_SPD_MASK; 604 nuts.flags |= ASYNC_SPD_CUST; 605 ioctl(io->fd, TIOCSSERIAL, &nuts); 606 cfsetospeed(&newtio, IO_Serial_Bitrate(38400)); 607 cfsetispeed(&newtio, IO_Serial_Bitrate(38400)); 608 #else 609 cfsetospeed(&newtio, IO_Serial_Bitrate(props->output_bitrate)); 610 cfsetispeed(&newtio, IO_Serial_Bitrate(props->input_bitrate)); 611 #endif 612 } 613 } 587 614 else 588 615 {
Note:
See TracChangeset
for help on using the changeset viewer.