forked from zephyrproject-rtos/zephyr
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcmsis_core_a_r.h
66 lines (54 loc) · 1.36 KB
/
cmsis_core_a_r.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
* Copyright (c) 2020 Stephanos Ioannidis <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief CMSIS interface file
*
* This header contains the interface to the ARM CMSIS Core headers.
*/
#ifndef ZEPHYR_MODULES_CMSIS_CMSIS_A_R_H_
#define ZEPHYR_MODULES_CMSIS_CMSIS_A_R_H_
#include <soc.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __CR_REV
#define __CR_REV 0U
#endif
#ifndef __CA_REV
#define __CA_REV 0U
#endif
#ifndef __FPU_PRESENT
#define __FPU_PRESENT CONFIG_CPU_HAS_FPU
#endif
#ifndef __MMU_PRESENT
#define __MMU_PRESENT CONFIG_CPU_HAS_MMU
#endif
#ifdef __cplusplus
}
#endif
#if defined(CONFIG_CPU_CORTEX_R4)
#include <core_cr4.h>
#elif defined(CONFIG_CPU_CORTEX_R5)
#include <core_cr5.h>
#elif defined(CONFIG_CPU_CORTEX_R7)
#include <core_cr7.h>
#elif defined(CONFIG_CPU_CORTEX_R52)
#include <core_cr52.h>
#elif defined(CONFIG_CPU_AARCH32_CORTEX_A)
/*
* Any defines relevant for the proper inclusion of CMSIS' Cortex-A
* Common Peripheral Access Layer (such as __CORTEX_A) which are not
* covered by the Kconfig-based default assignments above must be
* provided by each aarch32 Cortex-A SoC's header file (already in-
* cluded above).
*/
#include <core_ca.h>
#else
#error "Unknown device"
#endif
#include "cmsis_core_a_r_ext.h"
#endif /* ZEPHYR_MODULES_CMSIS_CMSIS_A_R_H_ */