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__) || defined(__SF32LB523UB6__) || defined(__SF32LB525UC6__) || defined(__SF32LB527UD6__)
25# define VSF_DEVICE_HEADER "./SF32LB52X/__device.h"
26#elif defined(__SF32LB551U4O5__) || defined(__SF32LB555V4O6__) || defined(__SF32LB555V436__) || defined(__SF32LB557VD3A6__)
27# define VSF_DEVICE_HEADER "./SF32LB55X/__device.h"
28#elif defined(__SF32LB567VND36__) || defined(__SF32LB566VCB36__) || defined(__SF32LB56WUND26__)\
29 || defined(__SF32LB563UCN26__) || defined(__SF32LB561UBN26__) || defined(__SF32LB560UNN26__)\
30# define VSF_DEVICE_HEADER "./SF32LB56X/__device.h"
31#elif defined(__SF32LB583VCC36__) || defined(__SF32LB585V5E56__) || defined(__SF32LB587VEE56__)
32# define VSF_DEVICE_HEADER "./SF32LB58X/__device.h"
33#else
34# error No supported device found.
35#endif
36
37/* include specified device driver header file */
38#include VSF_DEVICE_HEADER
39
40/*============================ MACROS ========================================*/
41/*============================ MACROFIED FUNCTIONS ===========================*/
42/*============================ TYPES =========================================*/
43/*============================ GLOBAL VARIABLES ==============================*/
44/*============================ LOCAL VARIABLES ===============================*/
45/*============================ PROTOTYPES ====================================*/
46
47
48/* EOF */