cpu_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Eistec AB
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for more
6  * details.
7  */
8 
19 #ifndef CPU_CONF_H
20 #define CPU_CONF_H
21 
22 /* This is needed to homogenize the symbolic IRQ names across different versions
23  * of the vendor headers. These must be defined before any vendor headers are
24  * included */
25 #define FTFA_IRQn FTF_IRQn
26 #define FTFA_Collision_IRQn Read_Collision_IRQn
27 #define FTFE_IRQn FTF_IRQn
28 #define FTFE_Collision_IRQn Read_Collision_IRQn
29 #define FTFL_IRQn FTF_IRQn
30 #define FTFL_Collision_IRQn Read_Collision_IRQn
31 #define PMC_IRQn LVD_LVW_IRQn
32 #define Watchdog_IRQn WDOG_EWM_IRQn
33 #define LVD_LVW_DCDC_IRQn LVD_LVW_IRQn
34 
35 /* Dispatch to a separate file per family */
36 #if defined(KINETIS_SERIES_K)
37 #include "cpu_conf_kinetis_k.h"
38 #elif defined(KINETIS_SERIES_L)
39 #include "cpu_conf_kinetis_l.h"
40 #elif defined(KINETIS_SERIES_M)
41 #include "cpu_conf_kinetis_m.h"
42 #elif defined(KINETIS_SERIES_V)
43 #include "cpu_conf_kinetis_v.h"
44 #elif defined(KINETIS_SERIES_W)
45 #include "cpu_conf_kinetis_w.h"
46 #elif defined(KINETIS_SERIES_EA)
47 #include "cpu_conf_kinetis_ea.h"
48 #endif /* defined(KINETIS_SERIES_x) */
49 
50 #ifndef MCU_MEM_MAP_VERSION
51 #error Missing vendor header for the chosen CPU_MODEL
52 #endif
53 #include "cpu_conf_kinetis.h"
54 
55 #ifdef __cplusplus
56 extern "C"
57 {
58 #endif
59 
64 #ifdef BITBAND_REG32
65 #define CPU_HAS_BITBAND 1
66 /* SRAM_L is mapped before the bit-banding region, only SRAM_U can be used for bit-banding */
67 #define CPU_HAS_SRAM_BITBAND 0
68 #endif
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif /* CPU_CONF_H */
CPU specific definitions common to all Kinetis CPUs.
CPU specific implementations for the NXP Kinetis EA series of Cortex-M MCUs.
CPU specific implementations for the NXP Kinetis K series of Cortex-M MCUs.
CPU specific implementations for the NXP Kinetis L series of Cortex-M MCUs.
CPU specific implementations for the NXP Kinetis M series of Cortex-M MCUs.
CPU specific implementations for the NXP Kinetis V series of Cortex-M MCUs.
CPU specific implementations for the NXP Kinetis K series of Cortex-M MCUs.