Changeset 233 in xtideuniversalbios for trunk/Serial_Server/win32
- Timestamp:
- Feb 4, 2012, 6:21:22 PM (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
r225 r233 32 32 " (default is a 32 MB disk, with CHS geometry 65:63:16)", 33 33 "", 34 " -p Named Pipe mode for emulators (pipe is '" PIPENAME "')",34 " -p Named Pipe mode for emulators (pipe is \"" PIPENAME "\")", 35 35 "", 36 36 " -c COMPortNumber COM Port to use (default is first found)", 37 37 "", 38 " -b BaudRate Baud rate to use on the COM port ", 39 " Without a rate multiplier: 2400, 9600, 38400, 115200", 40 " With a 2x rate multiplier: 4800, 19200, 76800, 230400", 41 " With a 4x rate multiplier: 9600, 38400, 153600, 460800", 42 " Abbreviations also accepted (ie, '460K', '38.4K', etc)", 43 " (default is 38400, 115200 in named pipe mode)", 38 " -b BaudRate Baud rate to use on the COM port, with client machine", 39 " rate multiplier in effect:", 40 " None: 2400, 4800, 9600, 28.8K, 57.6K, 115.2K", 41 " 2x: 4800, 9600, 19200, 57.6K, 115.2K, 230.4K", 42 " 4x: 9600, 19200, 38400, 115.2K, 230.4K, 460.8K", 43 " and for completeness: 76.8K, 153.6K", 44 " (default is 9600, 115.2K when in named pipe mode)", 44 45 "", 45 46 " -t Disable timeout, useful for long delays when debugging", … … 148 149 break; 149 150 case 'b': case 'B': 150 if( !(baudRate = baudRateMatchString( argv[++t] )) ) 151 { 152 fprintf( stderr, "Unknown Baud Rate %s\n\n", argv[t] ); 153 usage(); 154 } 151 if( !(baudRate = baudRateMatchString( argv[++t] )) || !baudRate->rate ) 152 log( -2, "Unknown Baud Rate \"%s\"", argv[t] ); 155 153 break; 156 154 default: 157 fprintf( stderr, "Unknown Option: %s\n\n", argv[t] ); 158 usage(); 155 log( -2, "Unknown Option: \"%s\"", argv[t] ); 159 156 } 160 157 } … … 179 176 180 177 if( !baudRate ) 181 baudRate = baudRateMatchString( " 38400" );178 baudRate = baudRateMatchString( "9600" ); 182 179 183 180 do … … 206 203 vfprintf( stderr, message, args ); 207 204 fprintf( stderr, "\n" ); 205 if( level < -1 ) 206 { 207 fprintf( stderr, "\n" ); 208 usage(); 209 } 208 210 exit( 1 ); 209 211 } -
trunk/Serial_Server/win32/Win32Serial.h
r225 r233 37 37 if( !strcmp( name, "PIPE" ) ) 38 38 { 39 log( 0, "Opening named pipe %s (simulating % lu baud)", PIPENAME, baudRate->rate);39 log( 0, "Opening named pipe %s (simulating %s baud)", PIPENAME, baudRate->display ); 40 40 41 41 pipe = CreateNamedPipeA( PIPENAME, PIPE_ACCESS_DUPLEX, PIPE_TYPE_BYTE|PIPE_REJECT_REMOTE_CLIENTS, 2, 1024, 1024, 0, NULL );
Note:
See TracChangeset
for help on using the changeset viewer.