VSF Documented
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
source
component
usb
driver
hcd
ohci
vsf_ohci.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
#ifndef __VSF_OHCI_H___
18
#define __VSF_OHCI_H___
19
20
/*============================ INCLUDES ======================================*/
21
22
#include "
component/usb/vsf_usb_cfg.h
"
23
24
#if VSF_USE_USB_HOST == ENABLED && VSF_USBH_USE_HCD_OHCI == ENABLED
25
26
#include "
component/usb/host/vsf_usbh.h
"
27
#include "
hal/vsf_hal.h
"
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
32
33
/*============================ MACROS ========================================*/
34
35
#if VSF_OHCI_CFG_SETUP_CONTROL == ENABLED
36
# define VSF_OHCI_FLAG_NO_DATA 0x10
37
# define VSF_OHCI_FLAG_NO_STATUS 0x20
38
#endif
39
40
/*============================ MACROFIED FUNCTIONS ===========================*/
41
/*============================ TYPES =========================================*/
42
43
typedef
struct
vk_ohci_param_t
{
44
const
i_usb_hc_ip_t *
op
;
45
vsf_arch_prio_t
priority
;
46
}
vk_ohci_param_t
;
47
48
/*============================ GLOBAL VARIABLES ==============================*/
49
50
extern
const
vk_usbh_hcd_drv_t
vk_ohci_drv
;
51
52
/*============================ PROTOTYPES ====================================*/
53
54
void
vk_ohci_init
(
void
);
55
56
#ifdef __cplusplus
57
}
58
#endif
59
60
#endif
61
#endif
// __VSF_OHCI_H___
vk_usbh_hcd_drv_t
Definition
vsf_usbh.h:322
vsf_arch_prio_t
vsf_arch_prio_t
Definition
cortex_a_generic.h:88
vk_ohci_param_t
Definition
vsf_ohci.h:43
vk_ohci_param_t::priority
vsf_arch_prio_t priority
Definition
vsf_ohci.h:45
vk_ohci_param_t::op
const i_usb_hc_ip_t * op
Definition
vsf_ohci.h:44
vsf_hal.h
vk_ohci_init
void vk_ohci_init(void)
Definition
vsf_ohci.c:1483
vk_ohci_drv
const vk_usbh_hcd_drv_t vk_ohci_drv
Definition
vsf_ohci.c:370
vsf_usb_cfg.h
vsf_usbh.h
Generated by
1.9.8