rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
cmparams.h
Go to the documentation of this file.
1/*
2 ChibiOS/RT - Copyright (C) 2006-2014 Giovanni Di Sirio.
3 (C) 2015 RedoX https://github.com/RedoXyde
4 (C) 2016 flabbergast <s3+flabbergast@sdfeu.org>
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 cmparams.h
24 * @brief ARM Cortex-M4 parameters for the Kinetis KE1xF.
25 *
26 * @details This file contains the Cortex-M4 specific parameters for the
27 * Kinetis KE1xF platform.
28 * @{
29 */
30
31#ifndef _CMPARAMS_H_
32#define _CMPARAMS_H_
33
34/**
35 * @brief Cortex core model.
36 */
37#define CORTEX_MODEL 4
38
39/**
40 * @brief Systick unit presence.
41 */
42#define CORTEX_HAS_ST TRUE
43
44/**
45 * @brief Floating Point unit presence.
46 */
47#define CORTEX_HAS_FPU 1
48
49/**
50 * @brief Number of bits in priority masks.
51 */
52#define CORTEX_PRIORITY_BITS 4
53
54/**
55 * @brief Number of interrupt vectors.
56 * @note This number does not include the 16 system vectors and must be
57 * rounded to a multiple of 8.
58 */
59#define CORTEX_NUM_VECTORS 96
60
61/* The following code is not processed when the file is included from an
62 asm module.*/
63#if !defined(_FROM_ASM_)
64
65/* Including the device CMSIS header. Note, we are not using the definitions
66 from this header because we need this file to be usable also from
67 assembler source files. We verify that the info matches instead.*/
68#include "MKE16F16.h"
69
70#if CORTEX_PRIORITY_BITS != __NVIC_PRIO_BITS
71#error "CMSIS __NVIC_PRIO_BITS mismatch"
72#endif
73
74#endif /* !defined(_FROM_ASM_) */
75
76#endif /* _CMPARAMS_H_ */
77
78/** @} */