Changeset 215 in xtideuniversalbios for trunk/Serial_Server/win32
- Timestamp:
- Jan 19, 2012, 9:17:04 AM (13 years ago)
- google:author:
- gregli@hotmail.com
- Location:
- trunk/Serial_Server/win32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Serial_Server/win32/Win32.cpp
r213 r215 40 40 " With a 4x rate multiplier: 9600, 38400, 153600, 460800", 41 41 " Abbreviations also accepted (ie, '460K', '38.4K', etc)", 42 " (default is 9600, 115200 in named pipe mode)",42 " (default is 38400, 115200 in named pipe mode)", 43 43 "", 44 44 " -t Disable timeout, useful for long delays when debugging", … … 47 47 "", 48 48 " -v [level] Reporting level 1-6, with increasing information", 49 "", 50 "On the client computer, a serial port can be configured for use as a hard disk", 51 "with xtidecfg.com. Or one can hold down the ALT key at the end of the normal", 52 "IDE hard disk scan and the XTIDE Universal BIOS will scan COM1-7, at each of", 53 "the four speeds given above for BaudRate. Note that hardware rate multipliers", 54 "must be taken into account on the server end, but are invisible on the client.", 49 55 NULL }; 50 56 … … 68 74 Serial *serial; 69 75 Image *img; 70 struct baudRate *baudRate ;76 struct baudRate *baudRate = NULL; 71 77 72 78 int timeoutEnabled = 1; … … 81 87 int imagecount = 0; 82 88 Image *images[2] = { NULL, NULL }; 83 84 baudRate = baudRateMatchString( "9600" );85 89 86 90 for( int t = 1; t < argc; t++ ) … … 114 118 case 'p': case 'P': 115 119 ComPort = "PIPE"; 116 baudRate = baudRateMatchString( "115200" ); 120 if( !baudRate ) 121 baudRate = baudRateMatchString( "115200" ); 117 122 break; 118 123 case 'g': case 'G': … … 141 146 if( !(baudRate = baudRateMatchString( argv[++t] )) ) 142 147 { 143 144 148 fprintf( stderr, "Unknown Baud Rate %s\n\n", argv[t] ); 149 usage(); 145 150 } 146 151 break; … … 163 168 usage(); 164 169 170 if( !baudRate ) 171 baudRate = baudRateMatchString( "38400" ); 172 165 173 do 166 174 { -
trunk/Serial_Server/win32/Win32Serial.cpp
r211 r215 53 53 if( !ConnectNamedPipe( pipe, NULL ) ) 54 54 log( -1, "Could not ConnectNamedPipe" ); 55 56 if( baudRate->divisor > 3 ) 57 log( -1, "Cannot simulate baud rates with hardware multipliers" ); 55 58 56 59 speedEmulation = 1;
Note:
See TracChangeset
for help on using the changeset viewer.