bsps: Provide optional prototype

This commit is contained in:
Sebastian Huber
2012-03-24 17:33:22 +01:00
parent e8adc8e355
commit 5cc813f2b5

View File

@@ -134,15 +134,18 @@ static inline rtems_vector_number bsp_interrupt_handler_index(
* @{ * @{
*/ */
#if !defined(BSP_INTERRUPT_CUSTOM_VALID_VECTOR) #ifdef BSP_INTERRUPT_CUSTOM_VALID_VECTOR
/** bool bsp_interrupt_is_valid_vector(rtems_vector_number vector);
* @brief Returns true if the interrupt vector with number @a vector is valid. #else
*/ /**
static inline bool bsp_interrupt_is_valid_vector(rtems_vector_number vector) * @brief Returns true if the interrupt vector with number @a vector is
{ * valid.
return (rtems_vector_number) BSP_INTERRUPT_VECTOR_MIN <= vector */
&& vector <= (rtems_vector_number) BSP_INTERRUPT_VECTOR_MAX; 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 #endif
/** /**