bsps/irq: Add rtems_interrupt_get_attributes()

Add a default implementation which clears the attributes to zero and
just returns RTEMS_SUCCESSFUL for valid parameters.

Update #3269.
This commit is contained in:
Sebastian Huber
2021-06-28 09:36:29 +02:00
parent 9832652c53
commit eebecd09fa
37 changed files with 337 additions and 2 deletions

View File

@@ -217,6 +217,23 @@ void bsp_interrupt_initialize(void);
*/
rtems_status_code bsp_interrupt_facility_initialize(void);
/**
* @brief Gets the attributes of the interrupt vector.
*
* @param vector is the interrupt vector number. It shall be valid.
*
* @param[out] attributes is the pointer to an rtems_interrupt_attributes
* object. When the function call is successful, the attributes of the
* interrupt vector will be stored in this object. The pointer shall not be
* NULL. The object shall be cleared to zero by the caller.
*
* @retval ::RTEMS_SUCCESSFUL The requested operation was successful.
*/
rtems_status_code bsp_interrupt_get_attributes(
rtems_vector_number vector,
rtems_interrupt_attributes *attributes
);
/**
* @brief Checks if the interrupt is enabled.
*