This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
re: serial overruns.
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] re: serial overruns.
- From: "David Airlie" <David dot Airlie at parthus dot com>
- Date: 19 Sep 2001 17:18:40 +0100
Hi,
I've posted a serial driver for my internal board here that does polled
tx and queued RX using two threads, so the ISR comes in puts stuff into a
queue, the DSR comes in posts a semaphore and the thread gets unleashed
which takes stuff from my incoming queue..
it does polled TX using a thread to send chars from the queue (my
development board has issues :-)... which may be useful for someone...
my driver isn't fully 16550 .. it is 16550 like with
loads of hacks on it like 4-byte FIFO and single latch register for all 3
ports..
ftp://ftp.skynet.ie/pub/ecos/chimera_serial.c
it might be useful for someone to know how this stuff is done .. also I'm
not claiming it works :-) in fact it may not ...
Dave.
--
David Airlie, Software Engineer, Parthus Technologies plc.,
Mary Rosse Centre, National Tech Park, Limerick, Ireland.
t: +353-61-508116 / f: +353-61-508101 / David.Airlie@parthus.com