Changeset 5cc813f in rtems


Ignore:
Timestamp:
Mar 24, 2012, 4:33:22 PM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
3c0e7f9b
Parents:
e8adc8e3
Message:

bsps: Provide optional prototype

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/shared/include/irq-generic.h

    re8adc8e3 r5cc813f  
    135135 */
    136136
    137 #if !defined(BSP_INTERRUPT_CUSTOM_VALID_VECTOR)
    138 /**
    139  * @brief Returns true if the interrupt vector with number @a vector is valid.
    140  */
    141 static inline bool bsp_interrupt_is_valid_vector(rtems_vector_number vector)
    142 {
    143   return (rtems_vector_number) BSP_INTERRUPT_VECTOR_MIN <= vector
    144     && vector <= (rtems_vector_number) BSP_INTERRUPT_VECTOR_MAX;
    145 }
     137#ifdef BSP_INTERRUPT_CUSTOM_VALID_VECTOR
     138  bool bsp_interrupt_is_valid_vector(rtems_vector_number vector);
     139#else
     140  /**
     141   * @brief Returns true if the interrupt vector with number @a vector is
     142   * valid.
     143   */
     144  static inline bool bsp_interrupt_is_valid_vector(rtems_vector_number vector)
     145  {
     146    return (rtems_vector_number) BSP_INTERRUPT_VECTOR_MIN <= vector
     147      && vector <= (rtems_vector_number) BSP_INTERRUPT_VECTOR_MAX;
     148  }
    146149#endif
    147150
Note: See TracChangeset for help on using the changeset viewer.