From: Tilman Sauerbeck Date: Sun, 16 Jun 2019 19:46:40 +0000 (+0200) Subject: common: Hardcode our target's CPU type in fsl_device_registers.h. X-Git-Url: http://git.code-monkey.de/?a=commitdiff_plain;h=ac21caaf57fcc5f23ea26706d69180b9f5f86d91;p=gps-watch.git common: Hardcode our target's CPU type in fsl_device_registers.h. --- 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__ */ /*******************************************************************************