VSF Documented
driver.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_DRIVER_HEADER
22
23#if defined CMSDK_CM0
24# define VSF_ARM_MPS2_DRIVER_HEADER "./CMSDK_CM0/driver.h"
25#elif defined CMSDK_CM0plus
26# define VSF_ARM_MPS2_DRIVER_HEADER "./CMSDK_CM0plus/driver.h"
27#elif defined CMSDK_CM3
28# define VSF_ARM_MPS2_DRIVER_HEADER "./CMSDK_CM3/driver.h"
29#elif defined CMSDK_CM4
30# define VSF_ARM_MPS2_DRIVER_HEADER "./CMSDK_CM4/driver.h"
31#elif defined CMSDK_CM4_FP
32# define VSF_ARM_MPS2_DRIVER_HEADER "./CMSDK_CM4_FP/driver.h"
33#elif defined CMSDK_CM7
34# define VSF_ARM_MPS2_DRIVER_HEADER "./CMSDK_CM7/driver.h"
35#elif defined CMSDK_CM7_SP
36# define VSF_ARM_MPS2_DRIVER_HEADER "./CMSDK_CM7/driver.h"
37#elif defined CMSDK_CM7_DP
38# define VSF_ARM_MPS2_DRIVER_HEADER "./CMSDK_CM7/driver.h"
39#elif defined CMSDK_ARMv8MBL
40# define VSF_ARM_MPS2_DRIVER_HEADER "./CMSDK_ARMv8MBL/driver.h"
41#elif defined CMSDK_ARMv8MML
42# define VSF_ARM_MPS2_DRIVER_HEADER "./CMSDK_ARMv8MML/driver.h"
43#elif defined CMSDK_ARMv8MML_SP
44# define VSF_ARM_MPS2_DRIVER_HEADER "./CMSDK_ARMv8MML_SP/driver.h"
45#elif defined CMSDK_ARMv8MML_DP
46# define VSF_ARM_MPS2_DRIVER_HEADER "./CMSDK_ARMv8MML_DP/driver.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_DRIVER_HEADER
53
54
55
56#ifndef __HAL_DRIVER_ARM_MPS2_H__
57#define __HAL_DRIVER_ARM_MPS2_H__
58
59
60/*============================ MACROS ========================================*/
61/*============================ MACROFIED FUNCTIONS ===========================*/
62/*============================ TYPES =========================================*/
63/*============================ GLOBAL VARIABLES ==============================*/
64/*============================ LOCAL VARIABLES ===============================*/
65/*============================ PROTOTYPES ====================================*/
66
67
68#endif
69/* EOF */