VSF Documented
vsf_hal_cfg.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
21#include "vsf_cfg.h"
22
23#ifndef __VSF_HAL_CFG_H__
24#define __VSF_HAL_CFG_H__
25
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32/*============================ MACROS ========================================*/
33
34#if (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L) && !defined(__cplusplus)
35#ifndef VSF_HAL_ASSERT
36# define VSF_HAL_ASSERT(__CON) VSF_ASSERT(__CON)
37#endif
38#else
39#ifndef VSF_HAL_ASSERT
40# define VSF_HAL_ASSERT(...) VSF_ASSERT(__VA_ARGS__)
41#endif
42#endif
43
44#ifndef VSF_HAL_USE_GPIO
45# define VSF_HAL_USE_GPIO ENABLED
46#endif
47
48#ifndef VSF_HAL_USE_EXTI
49# define VSF_HAL_USE_EXTI ENABLED
50#endif
51
52#ifndef VSF_HAL_USE_PM
53# define VSF_HAL_USE_PM ENABLED
54#endif
55
56#ifndef VSF_HAL_USE_USART
57# define VSF_HAL_USE_USART ENABLED
58#endif
59
60#ifndef VSF_HAL_USE_SPI
61# define VSF_HAL_USE_SPI ENABLED
62#endif
63
64#ifndef VSF_HAL_USE_FIFO2REQ_SPI
65# define VSF_HAL_USE_FIFO2REQ_SPI ENABLED
66#endif
67
68#ifndef VSF_HAL_USE_MULTIPLEX_CS_SPI
69# define VSF_HAL_USE_MULTIPLEX_CS_SPI ENABLED
70#endif
71
72#ifndef VSF_HAL_USE_I2C
73# define VSF_HAL_USE_I2C ENABLED
74#endif
75
76#ifndef VSF_HAL_USE_MULTIPLEX_I2C
77# define VSF_HAL_USE_MULTIPLEX_I2C ENABLED
78#endif
79
80#ifndef VSF_HAL_USE_MERGER_REQUEST_I2C
81# define VSF_HAL_USE_MERGER_REQUEST_I2C ENABLED
82#endif
83
84#ifndef VSF_HAL_USE_GPIO_I2C
85# define VSF_HAL_USE_GPIO_I2C VSF_HAL_USE_I2C
86#endif
87
88#ifndef VSF_HAL_USE_I2S
89# define VSF_HAL_USE_I2S ENABLED
90#endif
91
92#ifndef VSF_HAL_USE_TIMER
93# define VSF_HAL_USE_TIMER ENABLED
94#endif
95
96#ifndef VSF_HAL_USE_ADC
97# define VSF_HAL_USE_ADC ENABLED
98#endif
99
100#ifndef VSF_HAL_USE_DAC
101# define VSF_HAL_USE_DAC ENABLED
102#endif
103
104#ifndef VSF_HAL_USE_DMA
105# define VSF_HAL_USE_DMA ENABLED
106#endif
107
108#ifndef VSF_HAL_USE_ETH
109# define VSF_HAL_USE_ETH ENABLED
110#endif
111
112#ifndef VSF_HAL_USE_WDT
113# define VSF_HAL_USE_WDT ENABLED
114#endif
115
116#ifndef VSF_HAL_USE_RTC
117# define VSF_HAL_USE_RTC ENABLED
118#endif
119
120#ifndef VSF_HAL_USE_USBD
121# define VSF_HAL_USE_USBD VSF_USE_USB_DEVICE
122#endif
123
124#ifndef VSF_HAL_USE_USBH
125# define VSF_HAL_USE_USBH VSF_USE_USB_HOST
126#endif
127
128#ifndef VSF_HAL_USE_FLASH
129# define VSF_HAL_USE_FLASH ENABLED
130#endif
131
132#ifndef VSF_HAL_USE_PWM
133# define VSF_HAL_USE_PWM ENABLED
134#endif
135
136#ifndef VSF_HAL_USE_SDIO
137# define VSF_HAL_USE_SDIO ENABLED
138#endif
139
140#ifndef VSF_HAL_USE_FB
141# define VSF_HAL_USE_FB ENABLED
142#endif
143
144#ifndef VSF_HAL_USE_RNG
145# define VSF_HAL_USE_RNG ENABLED
146#endif
147
148/*============================ MACROFIED FUNCTIONS ===========================*/
149/*============================ TYPES =========================================*/
150/*============================ GLOBAL VARIABLES ==============================*/
151/*============================ LOCAL VARIABLES ===============================*/
152/*============================ PROTOTYPES ====================================*/
153
154#ifdef __cplusplus
155}
156#endif
157#endif
158/* EOF */
Generated from commit: vsfteam/vsf@8634e61