VSF Documented
vsf_winusb_hcd.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_WINUSB_HCD_H___
18#define __VSF_WINUSB_HCD_H___
19
20/*============================ INCLUDES ======================================*/
21
23
24#if VSF_USE_USB_HOST == ENABLED && VSF_USBH_USE_HCD_WINUSB == ENABLED
25
28#include "hal/vsf_hal.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34/*============================ MACROS ========================================*/
35
36#if VSF_USBH_CFG_ENABLE_ROOT_HUB == ENABLED
37# error "winusb_hcd does not support root hub"
38#endif
39#if VSF_USBH_USE_HUB == ENABLED
40# error "winusb_hcd does not support hub"
41#endif
42#if !defined(__CPU_X86__) && !defined(__CPU_X64__)
43# error "winusb_hcd ONLY support x86/64"
44#endif
45
46/*============================ MACROFIED FUNCTIONS ===========================*/
47/*============================ TYPES =========================================*/
48
49typedef struct vk_winusb_hcd_param_t {
52
53/*============================ GLOBAL VARIABLES ==============================*/
54
56
57/*============================ PROTOTYPES ====================================*/
58
59#ifdef __cplusplus
60}
61#endif
62
63#endif
64#endif // __VSF_WINUSB_HCD_H___
Definition vsf_usbh.h:322
vsf_arch_prio_t
Definition cortex_a_generic.h:88
Definition vsf_winusb_hcd.h:49
vsf_arch_prio_t priority
Definition vsf_winusb_hcd.h:50
const vk_usbh_hcd_drv_t vk_winusb_hcd_drv
Definition vsf_winusb_hcd.c:167