Date: Mon, 5 Feb 2001 17:21:26 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Bitland 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.