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
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_PM
49# define VSF_HAL_USE_PM ENABLED
50#endif
51
52#ifndef VSF_HAL_USE_USART
53# define VSF_HAL_USE_USART ENABLED
54#endif
55
56#ifndef VSF_HAL_USE_SPI
57# define VSF_HAL_USE_SPI ENABLED
58#endif
59
60#ifndef VSF_HAL_USE_FIFO2REQ_SPI
61# define VSF_HAL_USE_FIFO2REQ_SPI ENABLED
62#endif
63
64#ifndef VSF_HAL_USE_MULTIPLEX_CS_SPI
65# define VSF_HAL_USE_MULTIPLEX_CS_SPI ENABLED
66#endif
67
68#ifndef VSF_HAL_USE_I2C
69# define VSF_HAL_USE_I2C ENABLED
70#endif
71
72#ifndef VSF_HAL_USE_MULTIPLEX_I2C
73# define VSF_HAL_USE_MULTIPLEX_I2C ENABLED
74#endif
75
76#ifndef VSF_HAL_USE_MERGER_REQUEST_I2C
77# define VSF_HAL_USE_MERGER_REQUEST_I2C ENABLED
78#endif
79
80#ifndef VSF_HAL_USE_GPIO_I2C
81# define VSF_HAL_USE_GPIO_I2C VSF_HAL_USE_I2C
82#endif
83
84#ifndef VSF_HAL_USE_I2S
85# define VSF_HAL_USE_I2S ENABLED
86#endif
87
88#ifndef VSF_HAL_USE_TIMER
89# define VSF_HAL_USE_TIMER ENABLED
90#endif
91
92#ifndef VSF_HAL_USE_ADC
93# define VSF_HAL_USE_ADC ENABLED
94#endif
95
96#ifndef VSF_HAL_USE_DAC
97# define VSF_HAL_USE_DAC ENABLED
98#endif
99
100#ifndef VSF_HAL_USE_DMA
101# define VSF_HAL_USE_DMA ENABLED
102#endif
103
104#ifndef VSF_HAL_USE_WDT
105# define VSF_HAL_USE_WDT ENABLED
106#endif
107
108#ifndef VSF_HAL_USE_RTC
109# define VSF_HAL_USE_RTC ENABLED
110#endif
111
112#ifndef VSF_HAL_USE_USBD
113# define VSF_HAL_USE_USBD VSF_USE_USB_DEVICE
114#endif
115
116#ifndef VSF_HAL_USE_USBH
117# define VSF_HAL_USE_USBH VSF_USE_USB_HOST
118#endif
119
120#ifndef VSF_HAL_USE_FLASH
121# define VSF_HAL_USE_FLASH ENABLED
122#endif
123
124#ifndef VSF_HAL_USE_PWM
125# define VSF_HAL_USE_PWM ENABLED
126#endif
127
128#ifndef VSF_HAL_USE_SDIO
129# define VSF_HAL_USE_SDIO ENABLED
130#endif
131
132#ifndef VSF_HAL_USE_FB
133# define VSF_HAL_USE_FB ENABLED
134#endif
135
136/*============================ MACROFIED FUNCTIONS ===========================*/
137/*============================ TYPES =========================================*/
138/*============================ GLOBAL VARIABLES ==============================*/
139/*============================ LOCAL VARIABLES ===============================*/
140/*============================ PROTOTYPES ====================================*/
141
142#ifdef __cplusplus
143}
144#endif
145#endif
146/* EOF */