Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ttcomtester/teraterm/teraterm/commlib.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3249 by yutakapon, Thu Mar 26 12:32:48 2009 UTC revision 3268 by yutakapon, Wed Apr 1 10:55:13 2009 UTC
# Line 1011  void CommLock(PTTSet ts, PComVar cv, BOO Line 1011  void CommLock(PTTSet ts, PComVar cv, BOO
1011    
1012  int GetCommSerialBaudRate(int id)  int GetCommSerialBaudRate(int id)
1013  {  {
1014          switch (id) {          char *ch;
1015                  case IdBaud110:          int val;
                         return 110;  
                 case IdBaud300:  
                 case IdBaud600:  
                 case IdBaud1200:  
                 case IdBaud2400:  
                 case IdBaud4800:  
                 case IdBaud9600:  
                         return 300 << (id - IdBaud110 -1);  
                 case IdBaud14400:  
                         return 14400;  
                 case IdBaud19200:  
                         return 19200;  
                 case IdBaud38400:  
                         return 38400;  
                 case IdBaud57600:  
                 case IdBaud115200:  
                 case IdBaud230400:  
                 case IdBaud460800:  
                 case IdBaud921600:  
                         return 57600 << (id - IdBaud38400 -1);  
         }  
1016    
1017          return 0;          // id-1がリストのindexとなる。
1018            ch = BaudList[id - 1];
1019            val = atoi(ch);
1020            return (val);
1021  }  }
1022    
1023  BOOL PrnOpen(PCHAR DevName)  BOOL PrnOpen(PCHAR DevName)

Legend:
Removed from v.3249  
changed lines
  Added in v.3268

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26