forked from Imagelibrary/rtems
bsps: Provide optional prototype
This commit is contained in:
@@ -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.
|
||||
#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)
|
||||
{
|
||||
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
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user