delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/05/10:28:16

Date: Mon, 5 Feb 2001 17:21:26 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Bitland <bitland AT aol DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: syntax for hex and binary
In-Reply-To: <20010205093807.29955.00000744@ng-bk1.aol.com>
Message-ID: <Pine.SUN.3.91.1010205171901.9182C-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 5 Feb 2001, Bitland 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.

- Raw text -


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