2020-02-12 13:44:12 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 Stephanos Ioannidis <root@stephanos.io>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief CMSIS interface file
|
|
|
|
*
|
|
|
|
* This header contains the interface to the ARM CMSIS Core headers.
|
|
|
|
*/
|
|
|
|
|
2023-06-30 00:22:37 +08:00
|
|
|
#ifndef ZEPHYR_MODULES_CMSIS_CMSIS_A_R_H_
|
|
|
|
#define ZEPHYR_MODULES_CMSIS_CMSIS_A_R_H_
|
2020-02-12 13:44:12 +08:00
|
|
|
|
|
|
|
#include <soc.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __CR_REV
|
|
|
|
#define __CR_REV 0U
|
|
|
|
#endif
|
|
|
|
|
2021-09-02 23:15:30 +08:00
|
|
|
#ifndef __CA_REV
|
|
|
|
#define __CA_REV 0U
|
|
|
|
#endif
|
|
|
|
|
2020-02-12 13:44:12 +08:00
|
|
|
#ifndef __FPU_PRESENT
|
|
|
|
#define __FPU_PRESENT CONFIG_CPU_HAS_FPU
|
|
|
|
#endif
|
|
|
|
|
2021-09-02 23:15:30 +08:00
|
|
|
#ifndef __MMU_PRESENT
|
|
|
|
#define __MMU_PRESENT CONFIG_CPU_HAS_MMU
|
|
|
|
#endif
|
|
|
|
|
2020-02-12 13:44:12 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(CONFIG_CPU_CORTEX_R4)
|
|
|
|
#include <core_cr4.h>
|
|
|
|
#elif defined(CONFIG_CPU_CORTEX_R5)
|
|
|
|
#include <core_cr5.h>
|
2021-01-12 18:03:17 +08:00
|
|
|
#elif defined(CONFIG_CPU_CORTEX_R7)
|
|
|
|
#include <core_cr7.h>
|
2024-03-25 19:57:21 +08:00
|
|
|
#elif defined(CONFIG_CPU_CORTEX_R8)
|
|
|
|
#include <core_cr8.h>
|
2022-02-25 18:30:31 +08:00
|
|
|
#elif defined(CONFIG_CPU_CORTEX_R52)
|
|
|
|
#include <core_cr52.h>
|
2021-09-02 23:15:30 +08:00
|
|
|
#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>
|
2020-02-12 13:44:12 +08:00
|
|
|
#else
|
2020-03-22 22:19:22 +08:00
|
|
|
#error "Unknown device"
|
2020-02-12 13:44:12 +08:00
|
|
|
#endif
|
|
|
|
|
2023-06-30 00:22:37 +08:00
|
|
|
#include "cmsis_core_a_r_ext.h"
|
2020-04-08 14:43:03 +08:00
|
|
|
|
2023-06-30 00:22:37 +08:00
|
|
|
#endif /* ZEPHYR_MODULES_CMSIS_CMSIS_A_R_H_ */
|