This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: EB40 Serial port #1 question.
- To: felixwong at i-technologies dot cc
- Subject: Re: [ECOS] EB40 Serial port #1 question.
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Wed, 10 Oct 2001 13:41:53 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- References: <NFBBLLEDKLLJHLKGHKACKEGECAAA.felixwong@i-technologies.cc>
felixwong@i-technologies.cc wrote:
>
> NOTE: The program below IS working on my EB40 fine.
> The modification I made was "wt" instead of "rw" in file open operation.
> Both "/dev/ser1" and "/dev/tty1" should work.
>
> Is there any problem with the "rw" case with "fopen"?? (note that
> "wr" case is working fine in this example too). Seems only the first
> character of file "mode" string is intepreted in eCos fileio.
Yes, because "rw" is not a legal mode string for fopen(). Try "r+".
I'm not clear though: with this fixed you would now have no problems at
all?
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