This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Bug in the pc_serial.h
- To: <ecos-discuss at sourceware dot cygnus dot com>
- Subject: [ECOS] Bug in the pc_serial.h
- From: "Boris V. Guzhov" <borg at int dot spb dot ru>
- Date: Tue, 15 May 2001 11:43:42 +0400
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