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
20#include "hal/vsf_hal_cfg.h"
21
22#undef VSF_SIFLI_DRIVER_HEADER
23
24#if defined(__SF32LB520U36__) || defined(__SF32LB523UB6__) || defined(__SF32LB525UC6__) || defined(__SF32LB527UD6__)
25# define VSF_SIFLI_DRIVER_HEADER "./SF32LB52X/common/driver.h"
26#elif defined(__SF32LB551U4O5__) || defined(__SF32LB555V4O6__) || defined(__SF32LB555V436__) || defined(__SF32LB557VD3A6__)
27# define VSF_SIFLI_DRIVER_HEADER "./SF32LB55X/common/driver.h"
28#elif defined(__SF32LB567VND36__) || defined(__SF32LB566VCB36__) || defined(__SF32LB56WUND26__)\
29 || defined(__SF32LB563UCN26__) || defined(__SF32LB561UBN26__) || defined(__SF32LB560UNN26__)\
30# define VSF_SIFLI_DRIVER_HEADER "./SF32LB56X/common/driver.h"
31#elif defined(__SF32LB583VCC36__) || defined(__SF32LB585V5E56__) || defined(__SF32LB587VEE56__)
32# define VSF_SIFLI_DRIVER_HEADER "./SF32LB58X/common/driver.h"
33#else
34# error No supported device found.
35#endif
36
37/* include specified device driver header file */
38#include VSF_SIFLI_DRIVER_HEADER
39
40
41
42#ifndef __HAL_DRIVER_SIFLI_H__
43#define __HAL_DRIVER_SIFLI_H__
44
45
46/*============================ MACROS ========================================*/
47/*============================ MACROFIED FUNCTIONS ===========================*/
48/*============================ TYPES =========================================*/
49/*============================ GLOBAL VARIABLES ==============================*/
50/*============================ LOCAL VARIABLES ===============================*/
51/*============================ PROTOTYPES ====================================*/
52
53
54#endif
55/* EOF */