diff --git a/cpu/kinetis/include/cpu_conf.h b/cpu/kinetis/include/cpu_conf.h index ac3ac66fae..ec8282b3e5 100644 --- a/cpu/kinetis/include/cpu_conf.h +++ b/cpu/kinetis/include/cpu_conf.h @@ -19,6 +19,19 @@ #ifndef CPU_CONF_H #define CPU_CONF_H +/* This is needed to homogenize the symbolic IRQ names across different versions + * of the vendor headers. These must be defined before any vendor headers are + * included */ +#define FTFA_IRQn FTF_IRQn +#define FTFA_Collision_IRQn Read_Collision_IRQn +#define FTFE_IRQn FTF_IRQn +#define FTFE_Collision_IRQn Read_Collision_IRQn +#define FTFL_IRQn FTF_IRQn +#define FTFL_Collision_IRQn Read_Collision_IRQn +#define PMC_IRQn LVD_LVW_IRQn +#define Watchdog_IRQn WDOG_EWM_IRQn +#define LVD_LVW_DCDC_IRQn LVD_LVW_IRQn + /* Dispatch to a separate file per family */ #if defined(KINETIS_SERIES_K) #include "cpu_conf_kinetis_k.h" diff --git a/cpu/kinetis/vectors.c b/cpu/kinetis/vectors.c index 12a3775b71..4ca2d86d57 100644 --- a/cpu/kinetis/vectors.c +++ b/cpu/kinetis/vectors.c @@ -26,20 +26,6 @@ * @name Interrupt vector definition * @{ */ - -/* This is needed to homogenize the symbolic IRQ names across different versions - * of the vendor headers. These must be defined before any vendor headers are - * included */ -#define FTFA_IRQn FTF_IRQn -#define FTFA_Collision_IRQn Read_Collision_IRQn -#define FTFE_IRQn FTF_IRQn -#define FTFE_Collision_IRQn Read_Collision_IRQn -#define FTFL_IRQn FTF_IRQn -#define FTFL_Collision_IRQn Read_Collision_IRQn -#define PMC_IRQn LVD_LVW_IRQn -#define Watchdog_IRQn WDOG_EWM_IRQn -#define LVD_LVW_DCDC_IRQn LVD_LVW_IRQn - #include "vectors_kinetis.h" /* CPU specific interrupt vector table */