From ac21caaf57fcc5f23ea26706d69180b9f5f86d91 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sun, 16 Jun 2019 21:46:40 +0200 Subject: [PATCH] common: Hardcode our target's CPU type in fsl_device_registers.h. --- src/common/fsl_device_registers.h | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/common/fsl_device_registers.h b/src/common/fsl_device_registers.h index daffed0..bcffb84 100644 --- a/src/common/fsl_device_registers.h +++ b/src/common/fsl_device_registers.h @@ -38,18 +38,7 @@ #ifndef __FSL_DEVICE_REGISTERS_H__ #define __FSL_DEVICE_REGISTERS_H__ -/* - * Include the cpu specific register header files. - * - * The CPU macro should be declared in the project or makefile. - */ -#if (defined(CPU_MKL26Z128CAL4) || defined(CPU_MKL26Z128VFM4) || defined(CPU_MKL26Z128VFT4) || \ - defined(CPU_MKL26Z128VLH4) || defined(CPU_MKL26Z128VLL4) || defined(CPU_MKL26Z128VMC4) || \ - defined(CPU_MKL26Z256VLH4) || defined(CPU_MKL26Z256VLL4) || defined(CPU_MKL26Z256VMC4) || \ - defined(CPU_MKL26Z256VMP4) || defined(CPU_MKL26Z32VFM4) || defined(CPU_MKL26Z32VFT4) || \ - defined(CPU_MKL26Z32VLH4) || defined(CPU_MKL26Z64VFM4) || defined(CPU_MKL26Z64VFT4) || \ - defined(CPU_MKL26Z64VLH4)) - +#define CPU_MKL26Z256VLH4 #define KL26Z4_SERIES /* CMSIS-style register definitions */ @@ -57,10 +46,6 @@ /* CPU specific feature definitions */ #include "MKL26Z4_features.h" -#else - #error "No valid CPU defined!" -#endif - #endif /* __FSL_DEVICE_REGISTERS_H__ */ /******************************************************************************* -- 2.30.2