* [ECOS] Bug in the pc_serial.h
@ 2001-05-15 0:59 Boris V. Guzhov
0 siblings, 0 replies; only message in thread
From: Boris V. Guzhov @ 2001-05-15 0:59 UTC (permalink / raw)
To: ecos-discuss
In the devs/serial/i386/pc/current/src/pc_serial.h is incorrectly declared
LCR_PE constant:
#define LCR_PE 0x0C // Parity mode - even
It should be declared:
#define LCR_PE 0x18 // Parity mode - even
The 16550 documentation extract:
Line Control Register - LCR (read/write)
LCR bits:
0,1 - word length select bits (see below)
2 - 0 = 1 stop bit, 1 = 1.5 or 2 (see note)
3 - 0 = no parity, 1 = parity (PEN)
4 - 0 = odd parity, 1 = even (EPS)
5 - 0 = parity disabled, 1 = enabled
6 - turn break off, 1 = force spacing break state
7 - 1 = baud rate divisor (DLAB); 0 = RBR, THR or IER
--
Boris Guzhov,
St.Petersburg, Russia
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-05-15 0:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-15 0:59 [ECOS] Bug in the pc_serial.h Boris V. Guzhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).