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