[ECOS] interrupts - deleting/finding by vector
Jonathan Larmour
jlarmour@redhat.com
Tue May 28 14:06:00 GMT 2002
"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
More information about the Ecos-discuss
mailing list