cpu_conf.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2017 Eistec AB
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
18 /* This is needed to homogenize the symbolic IRQ names across different versions
19  * of the vendor headers. These must be defined before any vendor headers are
20  * included */
21 #define FTFA_IRQn FTF_IRQn
22 #define FTFA_Collision_IRQn Read_Collision_IRQn
23 #define FTFE_IRQn FTF_IRQn
24 #define FTFE_Collision_IRQn Read_Collision_IRQn
25 #define FTFL_IRQn FTF_IRQn
26 #define FTFL_Collision_IRQn Read_Collision_IRQn
27 #define PMC_IRQn LVD_LVW_IRQn
28 #define Watchdog_IRQn WDOG_EWM_IRQn
29 #define LVD_LVW_DCDC_IRQn LVD_LVW_IRQn
30 
31 /* Dispatch to a separate file per family */
32 #if defined(KINETIS_SERIES_K)
33 #include "cpu_conf_kinetis_k.h"
34 #elif defined(KINETIS_SERIES_L)
35 #include "cpu_conf_kinetis_l.h"
36 #elif defined(KINETIS_SERIES_M)
37 #include "cpu_conf_kinetis_m.h"
38 #elif defined(KINETIS_SERIES_V)
39 #include "cpu_conf_kinetis_v.h"
40 #elif defined(KINETIS_SERIES_W)
41 #include "cpu_conf_kinetis_w.h"
42 #elif defined(KINETIS_SERIES_EA)
43 #include "cpu_conf_kinetis_ea.h"
44 #endif /* defined(KINETIS_SERIES_x) */
45 
46 #ifndef MCU_MEM_MAP_VERSION
47 #error Missing vendor header for the chosen CPU_MODEL
48 #endif
49 #include "cpu_conf_kinetis.h"
50 
51 #ifdef __cplusplus
52 extern "C"
53 {
54 #endif
55 
60 #ifdef BITBAND_REG32
61 #define CPU_HAS_BITBAND 1
62 /* SRAM_L is mapped before the bit-banding region, only SRAM_U can be used for bit-banding */
63 #define CPU_HAS_SRAM_BITBAND 0
64 #endif
67 #ifdef __cplusplus
68 }
69 #endif
70 
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.