This is the mail archive of the
mailing list for the eCos project.
PC nonblocking console I/O
- From: "Richardson, Anthony" <ar63 at evansville dot edu>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Thu, 29 Jan 2004 15:38:51 -0600
- Subject: [ECOS] PC nonblocking console I/O
I've been trying to get nonblocking read working on the PC console
using the following code:
cyg_uint32 blkinfo = 0;
length = sizeof(blkinfo);
stat = cyg_io_set_config(console,
where console is a handle corresponding to "/dev/ttydiag"
I keep getting error 22 "Invalid argument". I am able to to turn off
character echoing (I'm trying to get a raw console) so I'm pretty sure
the console handle is okay. Is this not working because the console
correspond to a real serial device or am I doing something wrong?
I did set the CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING option in the
configuration. I've tried various options in the configuration tool
regard to enabling "TTY mode serial device drivers" and "TTY mode
but without success. If anyone could provide pointers they would be
I'm using the 2.0 release.
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss