This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: how to handle missed interrupt issue?
- From: "alys" <alys-work at mail dot ru>
- To: "'Dave Milter'" <davemilter at gmail dot com>, <ecos-discuss at sourceware dot org>
- Date: Thu, 5 Feb 2009 18:34:51 +0300
- Subject: RE: [ECOS] how to handle missed interrupt issue?
- Reply-to: <alys-work at mail dot ru>
If you are waiting some external event, and it could never happens by
some reason - you must have timeout for you wait. And handle the timeout
case. Else you could hang your system if you cable is broken(for
example).
Best regards.
Alys.
> -----Original Message-----
> From: ecos-discuss-owner@ecos.sourceware.org [mailto:ecos-discuss-
> owner@ecos.sourceware.org] On Behalf Of Dave Milter
> Sent: Thursday, February 05, 2009 5:51 PM
> To: ecos-discuss@sourceware.org
> Subject: [ECOS] how to handle missed interrupt issue?
>
...
> there is probability that I lost interrupt between cyg_drv_isr_lock()
> and cyg_drv_isr_unlock(),
> and this of cause a problem, I willl wait interrupt and it never
happens.
...
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss