This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: PC nonblocking console I/O
- From: "Richardson, Anthony" <ar63 at evansville dot edu>
- To: "Gary Thomas" <gary at mlbassoc dot com>,<ecos-discuss at sources dot redhat dot com>
- Date: Thu, 29 Jan 2004 16:17:04 -0600
- Subject: RE: [ECOS] PC nonblocking console I/O
On Thu, 2004-01-29 at 15:49, Thomas, Gary wrote:
> On Thu, 2004-01-29 at 14:38, Richardson, Anthony wrote:
> > 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,
> > CYG_IO_SET_CONFIG_SERIAL_READ_BLOCKING,
> > &blkinfo, &length);
> >
> > where console is a handle corresponding to "/dev/ttydiag"
> > I'm using the 2.0 release.
>
> You can't use ttydiag for this - it has to be a regular serial device.
> 'ttydiag' maps onto the diagnostic I/O channel which is polled only.
Is there another way to get nonblocked keyboard input then?
Tony
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss