delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/05/12:31:42

From: Bitland AT aol DOT com
Message-ID: <cb.ddc8c75.27b03c42@aol.com>
Date: Mon, 5 Feb 2001 12:26:26 EST
Subject: Re: syntax for hex and binary
To: djgpp AT delorie DOT com
MIME-Version: 1.0
X-Mailer: AOL 4.0.i for Windows 95 sub 69
Reply-To: djgpp AT delorie DOT com

On 5.Feb.2001 16:23:21 (MEZ) eliz AT is DOT elta DOT co DOT il wrote:
 
 >> Either you define B115200 as #define B115200
 >> (baud speed of serial I assume), or you simply delete the B (because 
115200 should be the right value).
 
 >115200 is certainly NOT the right value.  The UART is programmed with 
 >special values to produce 115200 baudrate, and none of these values has 
 >the value 115200.  (Actually, the higher the rate, the lower the values 
 >you program into the UART, IIRC.)
 
 >In the termios interface, the Bnnnnn macros are simply manifest 
 >constants, they are converted to real values by the termios functions.

 Certainly, you're absolutely right! (...and the define without a value 
wouldn't work anyway) I remember a division programming the baudrate. I never 
used termios, so I didn't know that these macros are available. I ported 
older serial-routines from TC to the DPMI-things of DJGPP and they are 
running very well! 
Now that happens, if you believe you can give a quick answer :)
But if the original problem still exists, the author may ask me privately - I 
could answer in his language!

Andy

p.s. (BTW: I'm through with the RHIDE/GDB-build and it *is* in fact a 
BIOS-problem with the GeForce2 in VGA-Int 0x1c01/ 0x1c02. Note sent to 
Hercules.)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019