VSF Documented
__device.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
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/*============================ INCLUDES ======================================*/
19#include "hal/vsf_hal_cfg.h"
20
21#undef VSF_ARM_MPS2_DEVICE_HEADER
22
23#if defined CMSDK_CM0
24# define VSF_ARM_MPS2_DEVICE_HEADER "./CMSDK_CM0/device.h"
25#elif defined CMSDK_CM0plus
26# define VSF_ARM_MPS2_DEVICE_HEADER "./CMSDK_CM0plus/device.h"
27#elif defined CMSDK_CM3
28# define VSF_ARM_MPS2_DEVICE_HEADER "./CMSDK_CM3/device.h"
29#elif defined CMSDK_CM4
30# define VSF_ARM_MPS2_DEVICE_HEADER "./CMSDK_CM4/device.h"
31#elif defined CMSDK_CM4_FP
32# define VSF_ARM_MPS2_DEVICE_HEADER "./CMSDK_CM4_FP/device.h"
33#elif defined CMSDK_CM7
34# define VSF_ARM_MPS2_DEVICE_HEADER "./CMSDK_CM7/device.h"
35#elif defined CMSDK_CM7_SP
36# define VSF_ARM_MPS2_DEVICE_HEADER "./CMSDK_CM7/device.h"
37#elif defined CMSDK_CM7_DP
38# define VSF_ARM_MPS2_DEVICE_HEADER "./CMSDK_CM7/device.h"
39#elif defined CMSDK_ARMv8MBL
40# define VSF_ARM_MPS2_DEVICE_HEADER "./CMSDK_ARMv8MBL/device.h"
41#elif defined CMSDK_ARMv8MML
42# define VSF_ARM_MPS2_DEVICE_HEADER "./CMSDK_ARMv8MML/device.h"
43#elif defined CMSDK_ARMv8MML_SP
44# define VSF_ARM_MPS2_DEVICE_HEADER "./CMSDK_ARMv8MML_SP/device.h"
45#elif defined CMSDK_ARMv8MML_DP
46# define VSF_ARM_MPS2_DEVICE_HEADER "./CMSDK_ARMv8MML_DP/device.h"
47#else
48# warning "no appropriate header file found!"
49#endif
50
51/* include specified device driver header file */
52#include VSF_ARM_MPS2_DEVICE_HEADER
53
54#ifdef __VSF_HEADER_ONLY_SHOW_ARCH_INFO__
55# ifndef __CPU_ARM__
56# define __CPU_ARM__
57# endif
58#else
59
60#ifndef __HAL_DEVICE_ARM_MPS2_H__
61#define __HAL_DEVICE_ARM_MPS2_H__
62
63/*============================ MACROS ========================================*/
64/*============================ MACROFIED FUNCTIONS ===========================*/
65/*============================ TYPES =========================================*/
66/*============================ GLOBAL VARIABLES ==============================*/
67/*============================ LOCAL VARIABLES ===============================*/
68/*============================ PROTOTYPES ====================================*/
69
70#endif // __HAL_DRIVER_ARM_MPS2_DEVICE_H__
71#endif // __VSF_HEADER_ONLY_SHOW_ARCH_INFO__
72/* EOF */