_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:
Martin Galvan
2016-02-19 16:11:29 -06:00
committed by Joel Sherrill
parent 42989d6f59
commit 86a276b5f3
+2 -1
View File
@@ -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)