aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/os/common/startup/ARMCMx/devices/TM4C123x/cmparams.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/os/common/startup/ARMCMx/devices/TM4C123x/cmparams.h')
-rw-r--r--lib/chibios-contrib/os/common/startup/ARMCMx/devices/TM4C123x/cmparams.h127
1 files changed, 127 insertions, 0 deletions
diff --git a/lib/chibios-contrib/os/common/startup/ARMCMx/devices/TM4C123x/cmparams.h b/lib/chibios-contrib/os/common/startup/ARMCMx/devices/TM4C123x/cmparams.h
new file mode 100644
index 000000000..7c4059147
--- /dev/null
+++ b/lib/chibios-contrib/os/common/startup/ARMCMx/devices/TM4C123x/cmparams.h
@@ -0,0 +1,127 @@
1/*
2 Copyright (C) 2014..2017 Marco Veeneman
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 TM4C123x/cmparams.h
19 * @brief ARM Cortex-M4 parameters for the TM4C123x.
20 *
21 * @defgroup ARMCMx_TM4C123x TM4C123x Specific Parameters
22 * @ingroup ARMCMx_SPECIFIC
23 * @details This file contains the Cortex-M4 specific parameters for the
24 * TM4C123x platform.
25 * @{
26 */
27
28#ifndef CMPARAMS_H
29#define CMPARAMS_H
30
31/* Defines required for correct CMSIS header functioning */
32#define __MPU_PRESENT 1 /**< MPU present */
33#define __NVIC_PRIO_BITS 3 /**< Bits used for Priority Levels */
34#define __Vendor_SysTickConfig 1 /**< Use different SysTick Config */
35#define __FPU_PRESENT 1 /**< FPU present */
36
37/* The following two defines are needed by ChibiOS */
38#define SVCall_IRQn -5
39#define PendSV_IRQn -3
40
41/**
42 * @brief Cortex core model.
43 */
44#define CORTEX_MODEL 4
45
46/**
47 * @brief Floating Point unit presence.
48 */
49#define CORTEX_HAS_FPU 1
50
51/**
52 * @brief Number of bits in priority masks.
53 */
54#define CORTEX_PRIORITY_BITS 3
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 144
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/* If the device type is not externally defined, for example from the Makefile,
68 then a file named board.h is included. This file must contain a device
69 definition compatible with the include file.*/
70#if !defined (PART_TM4C1230C3PM) && !defined (PART_TM4C1230D5PM) && \
71 !defined (PART_TM4C1230E6PM) && !defined (PART_TM4C1230H6PM) && \
72 !defined (PART_TM4C1231C3PM) && !defined (PART_TM4C1231D5PM) && \
73 !defined (PART_TM4C1231D5PZ) && !defined (PART_TM4C1231E6PM) && \
74 !defined (PART_TM4C1231E6PZ) && !defined (PART_TM4C1231H6PGE) && \
75 !defined (PART_TM4C1231H6PM) && !defined (PART_TM4C1231H6PZ) && \
76 !defined (PART_TM4C1232C3PM) && !defined (PART_TM4C1232D5PM) && \
77 !defined (PART_TM4C1232E6PM) && !defined (PART_TM4C1232H6PM) && \
78 !defined (PART_TM4C1233C3PM) && !defined (PART_TM4C1233D5PM) && \
79 !defined (PART_TM4C1233D5PZ) && !defined (PART_TM4C1233E6PM) && \
80 !defined (PART_TM4C1233E6PZ) && !defined (PART_TM4C1233H6PGE) && \
81 !defined (PART_TM4C1233H6PM) && !defined (PART_TM4C1233H6PZ) && \
82 !defined (PART_TM4C1236D5PM) && !defined (PART_TM4C1236E6PM) && \
83 !defined (PART_TM4C1236H6PM) && !defined (PART_TM4C1237D5PM) && \
84 !defined (PART_TM4C1237D5PZ) && !defined (PART_TM4C1237E6PM) && \
85 !defined (PART_TM4C1237E6PZ) && !defined (PART_TM4C1237H6PGE) && \
86 !defined (PART_TM4C1237H6PM) && !defined (PART_TM4C1237H6PZ) && \
87 !defined (PART_TM4C123AE6PM) && !defined (PART_TM4C123AH6PM) && \
88 !defined (PART_TM4C123BE6PM) && !defined (PART_TM4C123BE6PZ) && \
89 !defined (PART_TM4C123BH6PGE) && !defined (PART_TM4C123BH6PM) && \
90 !defined (PART_TM4C123BH6PZ) && !defined (PART_TM4C123BH6ZRB) && \
91 !defined (PART_TM4C123FE6PM) && !defined (PART_TM4C123FH6PM) && \
92 !defined (PART_TM4C123GE6PM) && !defined (PART_TM4C123GE6PZ) && \
93 !defined (PART_TM4C123GH6PGE) && !defined (PART_TM4C123GH6PM) && \
94 !defined (PART_TM4C123GH6PZ) && !defined (PART_TM4C123GH6ZRB) && \
95 !defined (PART_TM4C123GH5ZXR)
96#include "board.h"
97#endif
98
99typedef int IRQn_Type;
100
101#include "core_cm4.h"
102
103/* Including the TivaWare peripheral headers.*/
104#include "inc/hw_ints.h"
105#include "inc/hw_memmap.h"
106#include "inc/hw_types.h"
107#include "inc/hw_timer.h"
108#include "inc/hw_sysctl.h"
109#include "inc/hw_gpio.h"
110#include "inc/hw_uart.h"
111#include "inc/hw_timer.h"
112#include "inc/hw_i2c.h"
113#include "inc/hw_watchdog.h"
114#include "inc/hw_ssi.h"
115#include "inc/hw_udma.h"
116#include "inc/hw_pwm.h"
117#include "inc/hw_adc.h"
118
119#if CORTEX_NUM_VECTORS != ((((NUM_INTERRUPTS - 16) + 7) / 8) * 8)
120#error "TivaWare NUM_INTERRUPTS mismatch"
121#endif
122
123#endif /* !defined(_FROM_ASM_) */
124
125#endif /* CMPARAMS_H */
126
127/** @} */