[ECOS] Servicing interrupts in ISR, but not in DSR

Gary Thomas gary@mlbassoc.com
Wed Jul 14 00:18:00 GMT 2004


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



More information about the Ecos-discuss mailing list