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
20#include "hal/vsf_hal_cfg.h"
21
22#undef VSF_DEVICE_HEADER
23
24#if defined(__SF32LB520U36__)
25# define VSF_DEVICE_HEADER "./SF32LB520U36/device.h"
26#elif defined(__SF32LB523UB6__)
27# define VSF_DEVICE_HEADER "./SF32LB523UB6/device.h"
28#elif defined(__SF32LB525UC6__)
29# define VSF_DEVICE_HEADER "./SF32LB525UC6/device.h"
30#elif defined(__SF32LB527UD6__))
31# define VSF_DEVICE_HEADER "./SF32LB527UD6/device.h"
32#else
33# error No supported device found.
34#endif
35
36/* include specified device driver header file */
37#include VSF_DEVICE_HEADER
38
39#ifdef __VSF_HEADER_ONLY_SHOW_ARCH_INFO__
40# ifndef __CPU_ARM__
41# define __CPU_ARM__
42# endif
43#else
44
45#ifndef __HAL_DEVICE_SIFLI_SF32LB52X_H__
46#define __HAL_DEVICE_SIFLI_SF32LB52X_H__
47
48/*============================ MACROS ========================================*/
49/*============================ MACROFIED FUNCTIONS ===========================*/
50/*============================ TYPES =========================================*/
51/*============================ GLOBAL VARIABLES ==============================*/
52/*============================ LOCAL VARIABLES ===============================*/
53/*============================ PROTOTYPES ====================================*/
54
55#endif // __HAL_DEVICE_SIFLI_SF32LB52X_H__
56#endif // __VSF_HEADER_ONLY_SHOW_ARCH_INFO__
57/* EOF */