forked from Imagelibrary/rtems
bsp/genmcf548x: Change BSP_INTERRUPT_VECTOR_MIN
This BSP uses a customized implementation of the interrupt extension API. It was the only BSP which defined BSP_INTERRUPT_VECTOR_MIN to a value other than zero. Define it to zero and use a custom bsp_interrupt_is_valid_vector() function instead. Update #3269.
This commit is contained in:
@@ -89,8 +89,16 @@
|
|||||||
#define MCF548X_IRQ_GPT1 61
|
#define MCF548X_IRQ_GPT1 61
|
||||||
#define MCF548X_IRQ_GPT0 62
|
#define MCF548X_IRQ_GPT0 62
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MIN 1
|
#define BSP_INTERRUPT_VECTOR_MIN 0
|
||||||
|
|
||||||
#define BSP_INTERRUPT_VECTOR_MAX 63
|
#define BSP_INTERRUPT_VECTOR_MAX 63
|
||||||
|
|
||||||
|
#define BSP_INTERRUPT_CUSTOM_VALID_VECTOR
|
||||||
|
|
||||||
|
static inline bool bsp_interrupt_is_valid_vector(rtems_vector_number vector)
|
||||||
|
{
|
||||||
|
return 1 <= vector
|
||||||
|
&& vector <= (rtems_vector_number) BSP_INTERRUPT_VECTOR_MAX;
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* LIBBSP_M68K_MCF548X_IRQ_H */
|
#endif /* LIBBSP_M68K_MCF548X_IRQ_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user