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: interrupts - deleting/finding by vector


"David N. Welton" wrote:
> 
> I want to write some code that might want to insert its own interrupts
> (I'm not positive, but I'm still experimenting).
> 
> Is there a way to
> 
> 1) find out if a given vector has a had an interrupt created for it?
> 
> 2) if so, delete/replace it?
> 
> I didn't see anything like this in the API...

It's not part of the "official" API as such, but each HAL has a macro
called HAL_INTERRUPT_IN_USE you can use to determine if an interrupt vector
has something already installed on it. Deleting/replacing it can then be
done using the standard functions. Look at that in the hal_intr.h file in
the arch source directory of the appropriate HAL.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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