[rtems commit] bsps: Provide optional prototype
Sebastian Huber
sebh at rtems.org
Sat Mar 24 16:24:28 UTC 2012
Module: rtems
Branch: master
Commit: 5cc813f2b59ef46ca1cb39ddb0177e02df6b69ca
Changeset: http://git.rtems.org/rtems/commit/?id=5cc813f2b59ef46ca1cb39ddb0177e02df6b69ca
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Sat Mar 24 17:33:22 2012 +0100
bsps: Provide optional prototype
---
c/src/lib/libbsp/shared/include/irq-generic.h | 21 ++++++++++++---------
1 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/c/src/lib/libbsp/shared/include/irq-generic.h b/c/src/lib/libbsp/shared/include/irq-generic.h
index 3cbb7db..d7d5cd0 100644
--- a/c/src/lib/libbsp/shared/include/irq-generic.h
+++ b/c/src/lib/libbsp/shared/include/irq-generic.h
@@ -134,15 +134,18 @@ static inline rtems_vector_number bsp_interrupt_handler_index(
* @{
*/
-#if !defined(BSP_INTERRUPT_CUSTOM_VALID_VECTOR)
-/**
- * @brief Returns true if the interrupt vector with number @a vector is valid.
- */
-static inline bool bsp_interrupt_is_valid_vector(rtems_vector_number vector)
-{
- return (rtems_vector_number) BSP_INTERRUPT_VECTOR_MIN <= vector
- && vector <= (rtems_vector_number) BSP_INTERRUPT_VECTOR_MAX;
-}
+#ifdef BSP_INTERRUPT_CUSTOM_VALID_VECTOR
+ bool bsp_interrupt_is_valid_vector(rtems_vector_number vector);
+#else
+ /**
+ * @brief Returns true if the interrupt vector with number @a vector is
+ * valid.
+ */
+ static inline bool bsp_interrupt_is_valid_vector(rtems_vector_number vector)
+ {
+ return (rtems_vector_number) BSP_INTERRUPT_VECTOR_MIN <= vector
+ && vector <= (rtems_vector_number) BSP_INTERRUPT_VECTOR_MAX;
+ }
#endif
/**
More information about the vc
mailing list