This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Servicing interrupts in ISR, but not in DSR


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]