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]

Regarding Problems with cyg_io_read and cyg_io_write!!


Hi again!
I think I have the solution to the problem I had before. Thought I'd just
write it in if someone encounters the same problem:
It seems like you have to have the functions above running in threads...
When I started from the example called serial.c and then just changed 
some parts of it (such as reconfiguring port, using read/write etc etc)
it worked just fine!
But the question WHY you have to have them running in a thread I don't
know...
 


-----Original Message-----
From: Abbas Arif 
Sent: den 3 juli 2001 12:53
To: ecos-discuss@sources.redhat.com
Subject: RE: [ECOS] Problems with cyg_io_read and cyg_io_write!!


I tried replacing the pointer with the variable, but the problem still
remains...
I get exactly the same error as I got before.... 

confusing huh??

/Arif

-----Original Message-----
From: Andrew Lunn [mailto:andrew.lunn@ascom.ch]
Sent: den 3 juli 2001 12:11
To: Abbas Arif
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] Problems with cyg_io_read and cyg_io_write!!


> 	ErrorNumberWrite = cyg_io_write(serial_handle,&strang,&len);

Do you realy want &strang, or just strang?

> 		ErrorNumberWrite = cyg_io_write(serial_handle,&strang,&len);

Same as above.

        Andrew


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