common: Hardcode our target's CPU type in fsl_device_registers.h.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sun, 16 Jun 2019 19:46:40 +0000 (21:46 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 7 Jul 2019 07:58:43 +0000 (09:58 +0200)
src/common/fsl_device_registers.h

index daffed0c9f72318c2fe4f6dbc4e1239e9711769c..bcffb84d1ed65af4157263c102ca7911b764b3cc 100644 (file)
 #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 */
 /* CPU specific feature definitions */
 #include "MKL26Z4_features.h"
 
-#else
-    #error "No valid CPU defined!"
-#endif
-
 #endif /* __FSL_DEVICE_REGISTERS_H__ */
 
 /*******************************************************************************