VSF Documented
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
source
hal
driver
Emulation
distbus
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
#if defined(__VSF_HEADER_ONLY_SHOW_ARCH_INFO__) || defined(__VSF_HAL_SHOW_VENDOR_INFO__)
21
22
# include "
./device.h
"
23
24
#else
25
26
#ifndef __VSF_HAL_DRIVER_EMULATION_DISTBUS_H__
27
#define __VSF_HAL_DRIVER_EMULATION_DISTBUS_H__
28
29
/*============================ INCLUDES ======================================*/
30
31
# include "
hal/vsf_hal_cfg.h
"
32
# include "
./device.h
"
33
34
// for common hal structure/enum/etc, include before user driver headers below.
35
# include "
hal/driver/common/template/vsf_template_hal_driver.h
"
36
37
# include "
hal/driver/vsf/distbus/driver.h
"
38
# include "
./hostos_driver.h
"
39
40
/*============================ MACROS ========================================*/
41
42
#define VSF_ARCH_SET_VECTOR_TABLE 1
43
44
/*============================ MACROFIED FUNCTIONS ===========================*/
45
/*============================ TYPES =========================================*/
46
/*============================ GLOBAL VARIABLES ==============================*/
47
/*============================ LOCAL VARIABLES ===============================*/
48
/*============================ PROTOTYPES ====================================*/
49
50
extern
void
vsf_arch_set_vector_table
(
void
(*
const
*
const
vector_table)());
51
52
/*============================ INCLUDES ======================================*/
53
54
#if VSF_HAL_USE_GPIO == ENABLED
55
# include "
hal/driver/common/template/vsf_template_gpio.h
"
56
57
# define VSF_GPIO_CFG_DEC_PREFIX vsf_hw
58
# define VSF_GPIO_CFG_DEC_UPCASE_PREFIX VSF_HW
59
# include "
hal/driver/common/gpio/gpio_template.h
"
60
#endif
61
62
#if VSF_HAL_USE_ADC == ENABLED
63
# include "
hal/driver/common/template/vsf_template_adc.h
"
64
65
# define VSF_ADC_CFG_DEC_PREFIX vsf_hw
66
# define VSF_ADC_CFG_DEC_UPCASE_PREFIX VSF_HW
67
# include "
hal/driver/common/adc/adc_template.h
"
68
#endif
69
70
#if VSF_HAL_USE_FLASH == ENABLED
71
# include "
hal/driver/common/template/vsf_template_flash.h
"
72
73
# define VSF_FLASH_CFG_DEC_PREFIX vsf_hw
74
# define VSF_FLASH_CFG_DEC_UPCASE_PREFIX VSF_HW
75
# include "
hal/driver/common/flash/flash_template.h
"
76
#endif
77
78
#if VSF_HAL_USE_I2C == ENABLED
79
# include "
hal/driver/common/template/vsf_template_i2c.h
"
80
81
# define VSF_I2C_CFG_DEC_PREFIX vsf_hw
82
# define VSF_I2C_CFG_DEC_UPCASE_PREFIX VSF_HW
83
# include "
hal/driver/common/i2c/i2c_template.h
"
84
#endif
85
86
#if VSF_HAL_USE_PWM == ENABLED
87
# include "
hal/driver/common/template/vsf_template_pwm.h
"
88
89
# define VSF_PWM_CFG_DEC_PREFIX vsf_hw
90
# define VSF_PWM_CFG_DEC_UPCASE_PREFIX VSF_HW
91
# include "
hal/driver/common/pwm/pwm_template.h
"
92
#endif
93
94
#if VSF_HAL_USE_RTC == ENABLED
95
# include "
hal/driver/common/template/vsf_template_rtc.h
"
96
97
# define VSF_RTC_CFG_DEC_PREFIX vsf_hw
98
# define VSF_RTC_CFG_DEC_UPCASE_PREFIX VSF_HW
99
# include "
hal/driver/common/rtc/rtc_template.h
"
100
#endif
101
102
#if VSF_HAL_USE_SPI == ENABLED
103
# include "
hal/driver/common/template/vsf_template_spi.h
"
104
105
# define VSF_SPI_CFG_DEC_PREFIX vsf_hw
106
# define VSF_SPI_CFG_DEC_UPCASE_PREFIX VSF_HW
107
# include "
hal/driver/common/spi/spi_template.h
"
108
109
// Optional: Add QSPI
110
//# define VSF_SPI_CFG_DEC_DEVICE_PREFIX vsf_hw_qspi
111
//# define VSF_SPI_CFG_DEC_DEVICE_UPCASE_PREFIX VSF_HW_QSPI
112
//# define VSF_SPI_CFG_DEC_RENAME_DEVICE_PREFIX ENABLED
113
//# include "hal/driver/common/spi/spi_template.h"
114
#endif
115
116
#if VSF_HAL_USE_SDIO == ENABLED
117
# include "
hal/driver/common/template/vsf_template_sdio.h
"
118
119
# define VSF_SDIO_CFG_DEC_PREFIX vsf_hw
120
# define VSF_SDIO_CFG_DEC_UPCASE_PREFIX VSF_HW
121
# include "
hal/driver/common/sdio/sdio_template.h
"
122
#endif
123
124
#if VSF_HAL_USE_TIMER == ENABLED
125
# include "
hal/driver/common/template/vsf_template_timer.h
"
126
127
# define VSF_TIMER_CFG_DEC_PREFIX vsf_hw
128
# define VSF_TIMER_CFG_DEC_UPCASE_PREFIX VSF_HW
129
# include "
hal/driver/common/timer/timer_template.h
"
130
#endif
131
132
#if VSF_HAL_USE_RNG == ENABLED
133
# include "
hal/driver/common/template/vsf_template_rng.h
"
134
135
# define VSF_RNG_CFG_DEC_PREFIX vsf_hw
136
# define VSF_RNG_CFG_DEC_UPCASE_PREFIX VSF_HW
137
# include "
hal/driver/common/rng/rng_template.h
"
138
#endif
139
140
#if VSF_HAL_USE_USART == ENABLED
141
# include "
hal/driver/common/template/vsf_template_usart.h
"
142
143
# define VSF_USART_CFG_DEC_PREFIX vsf_hw
144
# define VSF_USART_CFG_DEC_UPCASE_PREFIX VSF_HW
145
# include "
hal/driver/common/usart/usart_template.h
"
146
#endif
147
148
#if VSF_HAL_USE_WDT == ENABLED
149
# include "
hal/driver/common/template/vsf_template_wdt.h
"
150
151
# define VSF_WDT_CFG_DEC_PREFIX vsf_hw
152
# define VSF_WDT_CFG_DEC_UPCASE_PREFIX VSF_HW
153
# include "
hal/driver/common/wdt/wdt_template.h
"
154
#endif
155
156
#endif
// __VSF_HAL_DRIVER_EMULATION_DISTBUS_H__
157
#endif
// !__VSF_HEADER_ONLY_SHOW_ARCH_INFO__ && !__VSF_HAL_SHOW_VENDOR_INFO__
158
/* EOF */
adc_template.h
flash_template.h
gpio_template.h
vsf_arch_set_vector_table
void vsf_arch_set_vector_table(void(*const *const vector_table)())
Definition
driver.c:334
driver.h
hostos_driver.h
i2c_template.h
pwm_template.h
rng_template.h
rtc_template.h
sdio_template.h
device.h
spi_template.h
timer_template.h
usart_template.h
vsf_hal_cfg.h
vsf_template_adc.h
vsf_template_flash.h
vsf_template_gpio.h
vsf_template_hal_driver.h
vsf_template_i2c.h
vsf_template_pwm.h
vsf_template_rng.h
vsf_template_rtc.h
vsf_template_sdio.h
vsf_template_spi.h
vsf_template_timer.h
vsf_template_usart.h
vsf_template_wdt.h
wdt_template.h
Generated from commit:
vsfteam/vsf@8634e61