[ECOS] getc with timeout
Jonathan Larmour
jifl@eCosCentric.com
Wed Dec 10 15:22:00 GMT 2008
Slide wrote:
> I have implemented a function to do a timeout on a getc, but I don't
> know how to call getc such that it will timeout. Can someone explain
> how this is supposed to work?
#include <cyg/hal/hal_if.h>
CYGACC_COMM_IF_GETC_TIMEOUT(timeout, chan)
See redboot's io.c for a usage example.
Jifl
--
eCosCentric Limited http://www.eCosCentric.com/ The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["Si fractum non sit, noli id reficere"]------ Opinions==mine
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list