summaryrefslogtreecommitdiffstats
path: root/bsps/include/bsp/irq-generic.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-06-28 09:36:29 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-26 17:08:42 +0200
commiteebecd09fad576f9d5fbc57fceefc2147910dae4 (patch)
tree3dd2a145d07e8215e4533d7d7064411c204a740a /bsps/include/bsp/irq-generic.h
parentbsps/irq: Add rtems_interrupt_raise() (diff)
downloadrtems-eebecd09fad576f9d5fbc57fceefc2147910dae4.tar.bz2
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.
Diffstat (limited to 'bsps/include/bsp/irq-generic.h')
-rw-r--r--bsps/include/bsp/irq-generic.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/bsps/include/bsp/irq-generic.h b/bsps/include/bsp/irq-generic.h
index d2d5e1ed90..cdd269a3af 100644
--- a/bsps/include/bsp/irq-generic.h
+++ b/bsps/include/bsp/irq-generic.h
@@ -218,6 +218,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.
*
* The function checks if the interrupt associated with the interrupt vector