[PATCH] _ARMV7M_Is_vector_an_irq: Use ARMV7M_VECTOR_SYSTICK instead of hardcoded 16

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Feb 22 05:50:07 UTC 2016



On 19/02/16 15:32, Martin Galvan wrote:
>   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;

The ARMv7-M manual says that external interrupts start with exception 
number 16 and not one plus the systick exception.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list