This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: mysterious behavior in serial ports
- From: Chuck McManis <ecos at mcmanis dot com>
- To: ECOS Discussion Group <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 02 Mar 2007 00:01:25 -0800
- Subject: Re: [ECOS] mysterious behavior in serial ports
- References: <6.1.2.0.2.20070301233559.050a3cd0@192.168.110.40>
And a bit more information, I went back and enabled nonblocking on the
serial driver and that fixes the input (basically it starts echoing as soon
as I type) but output still pauses. I can fix that by putting an
fflush(stdout); in there but this is not the behavior my user code is
expecting and as I'm porting a fairly sizable chunk it seems I should be
able to get this fixed in ecos instead ;-).
That being said I'm rummaging around the implementation of the standard i/o
library both on FreeBSD and on ecos to see how they differ in this regard...
--Chuck
At 11:39 PM 3/1/2007, Chuck McManis wrote:
So per Andrews comment I found that yes, I can force /dev/tty0 to be
stdin/out (cool) and as long as I talk to Redboot on COM1 first it becomes
/dev/ttydiag so no worries about stalling the system by polling the serial
port.
... elided
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss