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_UNCASE_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_UNCASE_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_hw
73# define VSF_RTC_CFG_DEC_UPCASE_PREFIX VSF_HW
75#endif
76
77#if VSF_HAL_USE_RNG == ENABLED
79
80# define VSF_RNG_CFG_DEC_PREFIX vsf_hw
81# define VSF_RNG_CFG_DEC_UPCASE_PREFIX VSF_HW
83#endif
84
85#if VSF_HAL_USE_USBD == ENABLED || VSF_HAL_USE_USBH == ENABLED
87#endif
88
89/*============================ GLOBAL VARIABLES ==============================*/
90
91#if VSF_USE_SIMPLE_STREAM == ENABLED
94#endif
95
96/*============================ LOCAL VARIABLES ===============================*/
97/*============================ PROTOTYPES ====================================*/
98
99extern bool vsf_hostos_driver_init(void);
100
101#ifdef __cplusplus
102}
103#endif
104
105#endif // __VSF_HEADER_ONLY_SHOW_ARCH_INFO__
106#endif
107/* 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@74aa6ce