New API directives to enable/disable interrupt vectors

Gedare Bloom gedare at rtems.org
Thu Jun 17 15:28:40 UTC 2021


On Wed, Jun 16, 2021 at 11:40 PM Sebastian Huber
<sebastian.huber at embedded-brains.de> wrote:
>
> On 16/06/2021 20:36, Gedare Bloom wrote:
> > Looks like the existing irq-extension.h uses 'vector', so
> > rtems_interrupt_disable_vector() is a possibility, or else
> > rtems_interrupt_controller_disable_vector() is more wordy but if we
> > want to treat 'interrupt controller' as its own category of API
> > separate from 'interrupt'.
>
> Yes, mixing "vector" into the name a good idea.  What about
> rtems_interrupt_vector_enable() and rtems_interrupt_vector_disable()?
>
> I am not that fond of using "interrupt controller" since I don't want to
> change the existing API and it would result in very long directive names.
>
I'm fine with the rtems_interrupt_vector_* to distinguish between the
score/cpu level support, and the bsp/irq controllers. We already use
this for example as "bsp_interrupt_vector_enable()". I think it will
be great to lift this "bsp" interface up to the "rtems" level.

> --
> embedded brains GmbH
> Herr Sebastian HUBER
> Dornierstr. 4
> 82178 Puchheim
> Germany
> email: sebastian.huber at embedded-brains.de
> phone: +49-89-18 94 741 - 16
> fax:   +49-89-18 94 741 - 08
>
> Registergericht: Amtsgericht München
> Registernummer: HRB 157899
> Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
> Unsere Datenschutzerklärung finden Sie hier:
> https://embedded-brains.de/datenschutzerklaerung/


More information about the devel mailing list