diff options
Diffstat (limited to 'lib/chibios/os/common/startup/ARM/devices/LPC214x/armparams.h')
-rw-r--r-- | lib/chibios/os/common/startup/ARM/devices/LPC214x/armparams.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/lib/chibios/os/common/startup/ARM/devices/LPC214x/armparams.h b/lib/chibios/os/common/startup/ARM/devices/LPC214x/armparams.h new file mode 100644 index 000000000..d61cdcd7c --- /dev/null +++ b/lib/chibios/os/common/startup/ARM/devices/LPC214x/armparams.h | |||
@@ -0,0 +1,62 @@ | |||
1 | /* | ||
2 | ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio | ||
3 | |||
4 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | you may not use this file except in compliance with the License. | ||
6 | You may obtain a copy of the License at | ||
7 | |||
8 | http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | |||
10 | Unless required by applicable law or agreed to in writing, software | ||
11 | distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | See the License for the specific language governing permissions and | ||
14 | limitations under the License. | ||
15 | */ | ||
16 | |||
17 | /** | ||
18 | * @file LPC214x/armparams.h | ||
19 | * @brief ARM parameters for the LPC214x. | ||
20 | * | ||
21 | * @defgroup ARM_LPC214x LPC214x Specific Parameters | ||
22 | * @ingroup ARM_SPECIFIC | ||
23 | * @details This file contains the ARM specific parameters for the | ||
24 | * LPC214x platform. | ||
25 | * @{ | ||
26 | */ | ||
27 | |||
28 | #ifndef ARMPARAMS_H | ||
29 | #define ARMPARAMS_H | ||
30 | |||
31 | /** | ||
32 | * @brief ARM core model. | ||
33 | */ | ||
34 | #define ARM_CORE ARM_CORE_ARM7TDMI | ||
35 | |||
36 | /** | ||
37 | * @brief Thumb-capable. | ||
38 | */ | ||
39 | #define ARM_SUPPORTS_THUMB 1 | ||
40 | |||
41 | /** | ||
42 | * @brief Thumb2-capable. | ||
43 | */ | ||
44 | #define ARM_SUPPORTS_THUMB2 0 | ||
45 | |||
46 | /** | ||
47 | * @brief Implementation of the wait-for-interrupt state enter. | ||
48 | */ | ||
49 | #define ARM_WFI_IMPL (PCON = 1) | ||
50 | |||
51 | #if !defined(_FROM_ASM_) || defined(__DOXYGEN__) | ||
52 | /** | ||
53 | * @brief Address of the IRQ vector register in the interrupt controller. | ||
54 | */ | ||
55 | #define ARM_IRQ_VECTOR_REG 0xFFFFF030U | ||
56 | #else | ||
57 | #define ARM_IRQ_VECTOR_REG 0xFFFFF030 | ||
58 | #endif | ||
59 | |||
60 | #endif /* ARMPARAMS_H */ | ||
61 | |||
62 | /** @} */ | ||