This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
SERIAL NON-BLOCKING mode in HW independent layer?
- To: "eCos Discussion" <ecos-discuss at sourceware dot cygnus dot com>
- Subject: [ECOS] SERIAL NON-BLOCKING mode in HW independent layer?
- From: "Trenton D. Adams" <tadams at theone dot dnsalias dot com>
- Date: Thu, 13 Sep 2001 10:25:15 -0600
I assume non-blocking mode for serial device drivers is entirely handled
by the hardware independent layer right? I'm not quite sure about this
yet since it appears that cyg_io_read () and cyg_io_write () simply call
the function I provided in the function structure.
However, there appears to be serial_XXX functions which do handle this.
One of the serial tests uses cyg_io_read () and cyg_io_write () directly
though. I would think this would not allow non-blocking mode!
Where do I find information on what the proper way of accessing a serial
device is? eg. cyg_io_xxx () or serial_xxx ()? I've seen some posts
saying that serial_read () and serial_write () are used, but I want some
actual docs on it.
The eCos reference manual doesn't appear to talk about how to actually
access the serial devices other than through cyg_io_read () and
cyg_io_write ().
Trenton D. Adams
Extreme Engineering
#17, 6025 - 12 St. SE
Calgary, Alberta, Canada
T2H 2K1
Phone: 403 640 9494 ext-208
Fax: 403 640 9599
http://www.extremeeng.com