This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Bug in the pc_serial.h


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]