Mail Archives: djgpp/2001/02/05/10:28:16
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 -