This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: getc with timeout
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Slide <slide dot o dot mix at gmail dot com>
- Cc: ecos-discuss <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 10 Dec 2008 12:41:16 +0000
- Subject: Re: [ECOS] getc with timeout
- Openpgp: id=A5FB74E6
- References: <a623f7d10812051521n24f52348gbf119656a8cc3e26@mail.gmail.com>
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