VSF Documented
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
23
24#if VSF_USE_USB_HOST == ENABLED && VSF_USBH_USE_HCD_OHCI == ENABLED
25
27#include "hal/vsf_hal.h"
28
29#ifdef __cplusplus
30extern "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
43typedef struct vk_ohci_param_t {
44 const i_usb_hc_ip_t *op;
47
48/*============================ GLOBAL VARIABLES ==============================*/
49
51
52/*============================ PROTOTYPES ====================================*/
53
54void vk_ohci_init(void);
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif
61#endif // __VSF_OHCI_H___
Definition vsf_usbh.h:322
vsf_arch_prio_t
Definition cortex_a_generic.h:88
Definition vsf_ohci.h:43
vsf_arch_prio_t priority
Definition vsf_ohci.h:45
const i_usb_hc_ip_t * op
Definition vsf_ohci.h:44
void vk_ohci_init(void)
Definition vsf_ohci.c:1483
const vk_usbh_hcd_drv_t vk_ohci_drv
Definition vsf_ohci.c:370