This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Is it possible to read and write from two different threads via the same fopen("/dev/ser0"...) handle ???
- From: "oliver munz @ s p e a g" <munz at speag dot ch>
- To: ecos-discuss at sourceware dot org
- Date: Fri, 21 Apr 2006 22:21:17 +0200
- Subject: [ECOS] Is it possible to read and write from two different threads via the same fopen("/dev/ser0"...) handle ???
- Reply-to: munz at speag dot ch
I want to read and write the same serial port from a reading thread and
from am other writeing thread. Should do this work?
I can do this via the cyg_io_read(...) and cyg_io_write(...) functions,
but the file-version dosn't worked... But may be i did it wrong...
Oliver
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss