This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Regarding Problems with cyg_io_read and cyg_io_write!!
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] Regarding [ECOS] Problems with cyg_io_read and cyg_io_write!!
- From: Arif dot Abbas at combitechsystems dot com
- Date: Tue, 3 Jul 2001 14:45:04 +0200
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