This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Serial application
- To: "'Jonathan Larmour'" <jlarmour at redhat dot com>
- Subject: RE: [ECOS] Serial application
- From: Ho Shui Choy Stanley PS03B NCS <scho at ncs dot com dot sg>
- Date: Wed, 9 May 2001 08:53:13 +0800
- Cc: "Ecos-Discuss (E-mail)" <ecos-discuss at sources dot redhat dot com>
Here is what I changed.
in /io/serial/current/src/common/serial.c
serial_read {
...
...
#ifdef CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING
if (cbuf->blocking) { <- previously checking for false
*len = size; // characters actually read
res = -EAGAIN;
break;
}
#endif // CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING
...
...
}
the same goes to serial_write
-----Original Message-----
From: Jonathan Larmour [mailto:jlarmour@redhat.com]
Sent: Tuesday, May 08, 2001 21:29
To: Ho Shui Choy Stanley PS03B NCS
Cc: Ecos-Discuss (E-mail)
Subject: Re: [ECOS] Serial application
Ho Shui Choy Stanley PS03B NCS wrote:
>
> Solve the problem already. Somehow in
/io/serial/currentsrc/common/serial.c,
> in serial_read function, the checking for blocking was wrong.
Don't keep us on tenter-hooks :-). What was the change?
Thanks for debugging it.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine