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#ifdef __VSF_HEADER_ONLY_SHOW_ARCH_INFO__
23
24#else
25
26#ifndef __HAL_DRIVER_X86_WIN_H__
27#define __HAL_DRIVER_X86_WIN_H__
28
29/*============================ INCLUDES ======================================*/
30
31#include "service/vsf_service.h"
32
33#include "./device.h"
34#include "./uart/uart.h"
35#include "./rtc/rtc.h"
36#include "./rng/rng.h"
37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
42/*============================ MACROS ========================================*/
43/*============================ MACROFIED FUNCTIONS ===========================*/
44/*============================ TYPES =========================================*/
45/*============================ INCLUDES ======================================*/
46
47#if VSF_HAL_USE_USART == ENABLED
49
50# define VSF_USART_CFG_DEC_PREFIX vsf_hostos
51# define VSF_USART_CFG_DEC_UPCASE_PREFIX VSF_HOSTOS
53
54# ifndef VSF_HOSTOS_USART_PREFIX
55# define VSF_HOSTOS_USART_PREFIX vsf_hw
56# define VSF_HOSTOS_USART_UPCASE_PREFIX VSF_HW
57# ifndef VSF_HW_USART_COUNT
58# define VSF_HW_USART_COUNT VSF_HOSTOS_USART_COUNT
59# endif
60# endif
61
62# define VSF_USART_CFG_DEC_PREFIX VSF_HOSTOS_USART_PREFIX
63# define VSF_USART_CFG_DEC_UPCASE_PREFIX VSF_HOSTOS_USART_UPCASE_PREFIX
64# define VSF_USART_CFG_DEC_REMAP ENABLED
65# define VSF_USART_CFG_DEC_REMAP_PREFIX vsf_fifo2req
67#endif
68
69#if VSF_HAL_USE_RTC == ENABLED
71
72# define VSF_RTC_CFG_DEC_PREFIX vsf_hostos
73# define VSF_RTC_CFG_DEC_UPCASE_PREFIX VSF_HOSTOS
75
76# ifndef VSF_HOSTOS_RTC_PREFIX
77# define VSF_HOSTOS_RTC_PREFIX vsf_hw
78# define VSF_HOSTOS_RTC_UPCASE_PREFIX VSF_HW
79# ifndef VSF_HW_RTC_COUNT
80# define VSF_HW_RTC_COUNT VSF_HOSTOS_RTC_COUNT
81# endif
82# endif
83
84# define VSF_RTC_CFG_DEC_PREFIX VSF_HOSTOS_RTC_PREFIX
85# define VSF_RTC_CFG_DEC_UPCASE_PREFIX VSF_HOSTOS_RTC_UPCASE_PREFIX
86# define VSF_RTC_CFG_DEC_REMAP ENABLED
87# define VSF_RTC_CFG_DEC_REMAP_PREFIX vsf_remapped
89#endif
90
91#if VSF_HAL_USE_RNG == ENABLED
93
94# define VSF_RNG_CFG_DEC_PREFIX vsf_hostos
95# define VSF_RNG_CFG_DEC_UPCASE_PREFIX VSF_HOSTOS
97
98# ifndef VSF_HOSTOS_RNG_PREFIX
99# define VSF_HOSTOS_RNG_PREFIX vsf_hw
100# define VSF_HOSTOS_RNG_UPCASE_PREFIX VSF_HW
101# ifndef VSF_HW_RNG_COUNT
102# define VSF_HW_RNG_COUNT VSF_HOSTOS_RNG_COUNT
103# endif
104# ifndef VSF_HW_RNG_BITLEN
105# define VSF_HW_RNG_BITLEN VSF_HOSTOS_RNG_BITLEN
106# endif
107# endif
108
109# define VSF_RNG_CFG_DEC_PREFIX VSF_HOSTOS_RNG_PREFIX
110# define VSF_RNG_CFG_DEC_UPCASE_PREFIX VSF_HOSTOS_RNG_UPCASE_PREFIX
111# define VSF_RNG_CFG_DEC_REMAP ENABLED
112# define VSF_RNG_CFG_DEC_REMAP_PREFIX vsf_remapped
114#endif
115
116#if VSF_HAL_USE_USBD == ENABLED || VSF_HAL_USE_USBH == ENABLED
118#endif
119
120/*============================ GLOBAL VARIABLES ==============================*/
121
122#if VSF_USE_SIMPLE_STREAM == ENABLED
125#endif
126
127/*============================ LOCAL VARIABLES ===============================*/
128/*============================ PROTOTYPES ====================================*/
129
130extern bool vsf_hostos_driver_init(void);
131
132#ifdef __cplusplus
133}
134#endif
135
136#endif // __VSF_HEADER_ONLY_SHOW_ARCH_INFO__
137#endif
138/* EOF */
Definition vsf_mem_stream.h:88
Definition vsf_simple_stream.h:254
vsf_mem_stream_t VSF_DEBUG_STREAM_RX
Definition NuConsole_stream.c:87
vsf_stream_t VSF_DEBUG_STREAM_TX
Definition NuConsole_stream.c:83
bool vsf_hostos_driver_init(void)
Definition driver.c:220
Generated from commit: vsfteam/vsf@8be0ed7