VSF Documented
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
source
hal
driver
x86
win
uart
uart.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
#ifndef __OSA_HAL_X86_WIN_USART_H__
19
#define __OSA_HAL_X86_WIN_USART_H__
20
21
/*============================ INCLUDES ======================================*/
22
23
#include "
hal/vsf_hal_cfg.h
"
24
25
#if VSF_HAL_USE_USART == ENABLED
26
27
#include "../device.h"
28
#include "
utilities/compiler/compiler.h
"
29
30
/*============================ MACROS ========================================*/
31
/*============================ MACROFIED FUNCTIONS ===========================*/
32
/*============================ TYPES =========================================*/
33
/*============================ INCLUDES ======================================*/
34
/*============================ TYPES =========================================*/
35
36
typedef
struct
vsf_usart_t
vsf_usart_t
;
37
38
typedef
struct
vsf_hostos_usart_device_t
{
39
vsf_usart_t
*
instance
;
40
uint8_t
port
;
41
char
name
[256];
42
char
friendly_name
[256];
43
}
vsf_hostos_usart_device_t
;
44
45
/*============================ GLOBAL VARIABLES ==============================*/
46
/*============================ PROTOTYPES ====================================*/
47
48
extern
uint8_t
vsf_hostos_usart_scan_devices
(
vsf_hostos_usart_device_t
*devices,
uint8_t
device_num);
49
50
#endif
51
#endif
// __OSA_HAL_X86_WIN_USART_H__
uint8_t
unsigned char uint8_t
Definition
stdint.h:5
vsf_hostos_usart_device_t
Definition
uart.h:38
vsf_hostos_usart_device_t::instance
vsf_usart_t * instance
Definition
uart.h:39
vsf_hostos_usart_device_t::name
char name[256]
Definition
uart.h:41
vsf_hostos_usart_device_t::port
uint8_t port
Definition
uart.h:40
vsf_hostos_usart_device_t::friendly_name
char friendly_name[256]
Definition
uart.h:42
vsf_usart_t
USART instance structure Used for USART Multi Class support.
Definition
vsf_template_usart.h:1008
compiler.h
vsf_hal_cfg.h
vsf_hostos_usart_scan_devices
uint8_t vsf_hostos_usart_scan_devices(vsf_hostos_usart_device_t *devices, uint8_t device_num)
Definition
uart.c:155
Generated from commit:
vsfteam/vsf@3f091ef