This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: EB40 Serial port #1 question.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]