Changeset 1216


Ignore:
Timestamp:
01/14/10 08:41:00 (12 years ago)
Author:
dingo35
Message:

Init sci reader properly, better safe than sorry

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/csctapi/ifd_sci.c

    r1215 r1216  
    4848    (*atr) = NULL;
    4949
    50 #ifdef SH4     
    5150    memset(&params,0,sizeof(SCI_PARAMETERS));
    5251   
    53     params.ETU = 372;
    54     params.EGT = 3;
    55     params.fs = 9;
     52    params.ETU = 372;
     53    params.EGT = 3; //not sure why this value is chosen
     54#ifdef SH4     
     55    params.fs = 9; //not sure why this value is chosen
     56#else
     57    params.fs = 5;
     58#endif
    5659    params.T = 0;
    5760   
    5861    if(ioctl(ifd->io->fd, IOCTL_SET_PARAMETERS, &params)!=0)
    5962        return ERROR;
    60 #endif
    6163   
    6264    if(ioctl(ifd->io->fd, IOCTL_SET_RESET)<0)
Note: See TracChangeset for help on using the changeset viewer.