mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 06:35:57 +08:00
_ARMV7M_Is_vector_an_irq: Use ARMV7M_VECTOR_SYSTICK instead of hardcoded 16
Also add a comment explaining why we use that value.
This commit is contained in:
committed by
Joel Sherrill
parent
42989d6f59
commit
86a276b5f3
@@ -386,7 +386,8 @@ typedef struct {
|
||||
|
||||
static inline bool _ARMV7M_Is_vector_an_irq( int vector )
|
||||
{
|
||||
return vector >= 16;
|
||||
/* External (i.e. non-system) IRQs start after the SysTick vector. */
|
||||
return vector > ARMV7M_VECTOR_SYSTICK;
|
||||
}
|
||||
|
||||
static inline uint32_t _ARMV7M_Get_basepri(void)
|
||||
|
||||
Reference in New Issue
Block a user