Changeset 21 for trunk/csctapi/io_serial.c
- Timestamp:
- 04/05/09 01:34:33 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/csctapi/io_serial.c
r16 r21 79 79 void IO_Serial_Ioctl_Lock(IO_Serial * io, int flag) 80 80 { 81 extern int * mpcs_sem;81 extern int *oscam_sem; 82 82 if ((io->com!=RTYP_DB2COM1) && (io->com!=RTYP_DB2COM2)) return; 83 83 if (!flag) 84 * mpcs_sem=0;85 else while (* mpcs_sem!=io->com)84 *oscam_sem=0; 85 else while (*oscam_sem!=io->com) 86 86 { 87 while (* mpcs_sem)87 while (*oscam_sem) 88 88 usleep((io->com)*2000); 89 * mpcs_sem=io->com;89 *oscam_sem=io->com; 90 90 usleep(1000); 91 91 } … … 993 993 static void IO_Serial_DeviceName (unsigned com, bool usbserial, char * filename, unsigned length) 994 994 { 995 extern char mpcs_device[];996 snprintf (filename, length, "%s", mpcs_device);995 extern char oscam_device[]; 996 snprintf (filename, length, "%s", oscam_device); 997 997 // if(com==1) 998 998 // snprintf (filename, length, "/dev/tts/%d", com - 1);
Note:
See TracChangeset
for help on using the changeset viewer.