[ECOS] EB40 Serial port #1 question.
Jonathan Larmour
jlarmour@redhat.com
Wed Oct 10 05:40:00 GMT 2001
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
More information about the Ecos-discuss
mailing list