aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/os/common/startup/ARMCMx/devices/MIMXRT1062/cmparams.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/os/common/startup/ARMCMx/devices/MIMXRT1062/cmparams.h')
-rw-r--r--lib/chibios-contrib/os/common/startup/ARMCMx/devices/MIMXRT1062/cmparams.h80
1 files changed, 80 insertions, 0 deletions
diff --git a/lib/chibios-contrib/os/common/startup/ARMCMx/devices/MIMXRT1062/cmparams.h b/lib/chibios-contrib/os/common/startup/ARMCMx/devices/MIMXRT1062/cmparams.h
new file mode 100644
index 000000000..9fe2a4a00
--- /dev/null
+++ b/lib/chibios-contrib/os/common/startup/ARMCMx/devices/MIMXRT1062/cmparams.h
@@ -0,0 +1,80 @@
1/*
2 ChibiOS/RT - Copyright (C) 2006-2014 Giovanni Di Sirio.
3 (C) 2015 RedoX https://github.com/RedoXyde
4 (C) 2016 flabbergast <[email protected]>
5
6 This file is part of ChibiOS/RT.
7
8 ChibiOS/RT is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
12
13 ChibiOS/RT is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
20*/
21
22/**
23 * @file GCC/ARMCMx/MK66F18/cmparams.h
24 * @brief ARM Cortex-M4 parameters for the Kinetis MK66F18.
25 *
26 * @defgroup ARMCMx_MK66F18 Kinetis MK66F18 Specific Parameters
27 * @ingroup ARMCMx_SPECIFIC
28 * @details This file contains the Cortex-M4 specific parameters for the
29 * Kinetis MK66F18 platform.
30 * @{
31 */
32
33#ifndef _CMPARAMS_H_
34#define _CMPARAMS_H_
35
36/**
37 * @brief Cortex core model.
38 */
39#define CORTEX_MODEL 7
40
41/**
42 * @brief Systick unit presence.
43 */
44#define CORTEX_HAS_ST TRUE
45
46/**
47 * @brief Floating Point unit presence.
48 */
49#define CORTEX_HAS_FPU TRUE
50
51/**
52 * @brief Number of bits in priority masks.
53 */
54#define CORTEX_PRIORITY_BITS 4
55
56/**
57 * @brief Number of interrupt vectors.
58 * @note This number does not include the 16 system vectors and must be
59 * rounded to a multiple of 8.
60 */
61#define CORTEX_NUM_VECTORS 160
62
63/* The following code is not processed when the file is included from an
64 asm module.*/
65#if !defined(_FROM_ASM_)
66
67/* Including the device CMSIS header. Note, we are not using the definitions
68 from this header because we need this file to be usable also from
69 assembler source files. We verify that the info matches instead.*/
70#include "MIMXRT1062.h"
71
72#if CORTEX_PRIORITY_BITS != __NVIC_PRIO_BITS
73#error "CMSIS __NVIC_PRIO_BITS mismatch"
74#endif
75
76#endif /* !defined(_FROM_ASM_) */
77
78#endif /* _CMPARAMS_H_ */
79
80/** @} */