summaryrefslogtreecommitdiffstats
path: root/bsps/include/bsp/irq-generic.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-06-28 08:20:53 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-26 07:54:25 +0200
commit781213f9ec5eb4f56c4df66253a8315ea513693e (patch)
tree49e43ebe53e539c654468bc9f44dd34c17055101 /bsps/include/bsp/irq-generic.h
parentrtems: Add RTEMS_FATAL_SOURCE_SPURIOUS_INTERRUPT (diff)
downloadrtems-781213f9ec5eb4f56c4df66253a8315ea513693e.tar.bz2
bsps/irq: Add rtems_interrupt_vector_is_enabled()
Add a default implementation which just returns RTEMS_UNSATISFIED for valid parameters. Update #3269.
Diffstat (limited to 'bsps/include/bsp/irq-generic.h')
-rw-r--r--bsps/include/bsp/irq-generic.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/bsps/include/bsp/irq-generic.h b/bsps/include/bsp/irq-generic.h
index 72c1d51332..cc45e63fed 100644
--- a/bsps/include/bsp/irq-generic.h
+++ b/bsps/include/bsp/irq-generic.h
@@ -218,6 +218,29 @@ void bsp_interrupt_initialize(void);
rtems_status_code bsp_interrupt_facility_initialize(void);
/**
+ * @brief Checks if the interrupt is enabled.
+ *
+ * The function checks if the interrupt associated with the interrupt vector
+ * specified by ``vector`` was enabled for the processor executing the function
+ * call at some time point during the call.
+ *
+ * @param vector is the interrupt vector number. It shall be valid.
+ *
+ * @param[out] enabled is the pointer to a ``bool`` object. It shall not be
+ * ``NULL``. When the function call is successful, the enabled status of
+ * the interrupt associated with the interrupt vector specified by ``vector``
+ * will be stored in this object. When the interrupt was enabled for the
+ * processor executing the function call at some time point during the call,
+ * the object will be set to true, otherwise to false.
+ *
+ * @retval ::RTEMS_SUCCESSFUL The requested operation was successful.
+ */
+rtems_status_code bsp_interrupt_vector_is_enabled(
+ rtems_vector_number vector,
+ bool *enabled
+);
+
+/**
* @brief Enables the interrupt vector with number @a vector.
*
* This function shall enable the vector at the corresponding facility (in most