VSF Documented
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
source
hal
driver
GigaDevice
GD32H7XX
common
usb
usb.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_DRIVER_GIGADEVICE_GD32H7XX_USB_H__
19
#define __OSA_HAL_DRIVER_GIGADEVICE_GD32H7XX_USB_H__
20
21
/*============================ INCLUDES ======================================*/
22
#include "
hal/vsf_hal.h
"
23
24
#if VSF_USE_USB_DEVICE == ENABLED || VSF_USE_USB_HOST == ENABLED
25
26
#include "
hal/driver/common/template/vsf_template_usb.h
"
27
28
// for dedicated vk_dwcotg_hw_info_t
29
#include "
component/usb/driver/otg/dwcotg/vsf_dwcotg_hw.h
"
30
31
/*============================ MACROS ========================================*/
32
/*============================ MACROFIED FUNCTIONS ===========================*/
33
34
#define __USB_OTG_DEF(__N, __VALUE) \
35
extern vsf_hw_usb_t USB_OTG##__N##_IP; \
36
extern const i_usb_dc_ip_t VSF_USB_DC##__N##_IP; \
37
extern const i_usb_hc_ip_t VSF_USB_HC##__N##_IP;
38
#define _USB_OTG_DEF(__N, __VALUE) __USB_OTG_DEF(__N, __VALUE)
39
#define USB_OTG_DEF(__N, __VALUE) _USB_OTG_DEF(__N, __VALUE)
40
41
/*============================ TYPES =========================================*/
42
43
typedef
struct
vsf_hw_usb_t
vsf_hw_usb_t
;
44
45
/*============================ INCLUDES ======================================*/
46
47
#include "./hc/usbh.h"
48
#include "./dc/usbd.h"
49
50
/*============================ GLOBAL VARIABLES ==============================*/
51
52
VSF_MREPEAT
(
USB_OTG_COUNT
,
USB_OTG_DEF
,
NULL
)
53
54
/*============================ INCLUDES ======================================*/
55
/*============================ PROTOTYPES ====================================*/
56
57
#endif
58
#endif
59
/* EOF */
USB_OTG_COUNT
#define USB_OTG_COUNT
Definition
device.h:75
USB_OTG_DEF
#define USB_OTG_DEF(__N, __VALUE)
Definition
usb.h:43
NULL
#define NULL
Definition
stddef.h:52
vsf_hw_usb_t
Definition
usb.h:53
vsf_dwcotg_hw.h
vsf_hal.h
VSF_MREPEAT
#define VSF_MREPEAT(__COUNT, __MACRO, __PARAM)
Definition
vsf_repeat_macro.h:51
vsf_template_usb.h
Generated by
1.9.8