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#ifndef __HAL_DRIVER_VSF_H__
19#define __HAL_DRIVER_VSF_H__
20
21/*============================ INCLUDES ======================================*/
22
23#include "hal/vsf_hal_cfg.h"
24
25// if VSF_HAL_DISTBUS_AS_REAL_DRIVER is defined, hal/driver/Emulation/distbus/driver.h is used
26// which will include hal/vsf/distbus/driver.h
27#if VSF_HAL_USE_DISTBUS == ENABLED && !defined(VSF_HAL_DISTBUS_AS_REAL_DRIVER)
28# include "./distbus/driver.h"
29#endif
30
31#if VSF_HAL_USE_GPIO == ENABLED
32// emulate GPIO driver on 74hc165
33# if VSF_HAL_USE_74HC165_GPIO == ENABLED
35# endif
36
37// emulate GPIO driver on 74hc595
38# if VSF_HAL_USE_74HC595_GPIO == ENABLED
40# endif
41#endif
42
43#if VSF_HAL_USE_I2C == ENABLED
44// emulate I2C driver with GPIO
45# if VSF_HAL_USE_GPIO_I2C == ENABLED
47# endif
48#endif
49
50#if VSF_HAL_USE_PWM == ENABLED
51// emulate PWM driver with TIMER + GPIO
52# if VSF_HAL_USE_TIMER_GPIO_PWM == ENABLED
54# endif
55#endif
56
57#if VSF_HAL_USE_ADC == ENABLED
58# if VSF_HAL_USE_ADC128D818_ADC == ENABLED
60# endif
61# if VSF_HAL_USE_ADS7830_ADC == ENABLED
63# endif
64#endif
65
66/*============================ MACROS ========================================*/
67/*============================ MACROFIED FUNCTIONS ===========================*/
68/*============================ TYPES =========================================*/
69/*============================ GLOBAL VARIABLES ==============================*/
70/*============================ LOCAL VARIABLES ===============================*/
71/*============================ PROTOTYPES ====================================*/
72
73
74#endif
75/* EOF */
Generated from commit: vsfteam/vsf@8634e61