This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Servicing interrupts in ISR, but not in DSR
- From: Gary Thomas <gary at mlbassoc dot com>
- To: "Miguel J. Vega" <mserrano at engin dot umich dot edu>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Tue, 13 Jul 2004 18:18:35 -0600
- Subject: Re: [ECOS] Servicing interrupts in ISR, but not in DSR
- Organization: MLB Associates
- References: <Pine.GSO.4.58.0407132007510.5031@sapphire.engin.umich.edu>
On Tue, 2004-07-13 at 18:11, Miguel J. Vega wrote:
> Hi everyone,
>
> If it is possible to service an interrupt completely in an ISR, is there a
> way to bypass the DSR? I included both because it is required by
> cyg_interrupt_create, but I think everything can be handeled in the ISR.
Yes, certainly. Just pass any address (0 comes to mind) for the DSR.
In the ISR, make sure that you never return "CYG_ISR_CALL_DSR" and
all will be well.
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss