Changeset 1622 for trunk/csctapi/ifd_phoenix.c
- Timestamp:
- 02/19/10 22:15:59 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/csctapi/ifd_phoenix.c
r1584 r1622 113 113 call (Phoenix_SetBaudrate (DEFAULT_BAUDRATE)); 114 114 for(i=0; i<3; i++) { 115 cs_sleepms(200); // pause for 200ms as this might help with the PL2303 115 116 IO_Serial_Flush(); 116 117 call (IO_Serial_SetParity (parity[i])); … … 125 126 #endif 126 127 IO_Serial_RTS_Set(); 127 cs_sleepms( 50);128 cs_sleepms(200); // we went form 50 to 200 as this might help with the PL2303 128 129 #ifdef USE_GPIO //felix: set card reset hi (inactive) 129 130 if (gpio_detect) { … … 133 134 #endif 134 135 IO_Serial_RTS_Clr(); 136 cs_sleepms(200); // pause for 200ms as this might help with the PL2303 135 137 IO_Serial_Ioctl_Lock(0); 136 138 if(ATR_InitFromStream (atr, ATR_TIMEOUT) == ATR_OK) … … 196 198 call (tcgetattr (reader[ridx].handle, &tio) != 0); 197 199 call (IO_Serial_SetBitrate (baudrate, &tio)); 200 cs_sleepms(200); // pause for 200ms as this might help with the PL2303 198 201 call (IO_Serial_SetProperties(tio)); 202 cs_sleepms(200); // pause for 200ms as this might help with the PL2303 199 203 } 200 204 current_baudrate = baudrate; //so if update fails, current_baudrate is not changed either
Note:
See TracChangeset
for help on using the changeset viewer.