VSF Documented
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
source
hal
driver
WCH
CH32F10X
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 __HAL_DRIVER_WCH_CH32F10X_USB_H__
19
#define __HAL_DRIVER_WCH_CH32F10X_USB_H__
20
21
/*============================ INCLUDES ======================================*/
22
#include "
hal/vsf_hal_cfg.h
"
23
#include "../../__device.h"
24
#include "
./usbd/usbd.h
"
25
#include "
./usbhd_hcd/usbhd_hcd.h
"
26
27
/*============================ MACROS ========================================*/
28
29
#define __USB_DC_DEF(__N, __TYPE) \
30
extern ch32f10x_##__TYPE##_t USB_DC##__N; \
31
extern const i_usb_dc_t VSF_USB_DC##__N;
32
#define _USB_DC_DEF(__N, __TYPE) __USB_DC_DEF(__N, __TYPE)
33
#define USB_DC_DEF(__N, __VALUE) _USB_DC_DEF(__N, USB_DC##__N##_TYPE)
34
35
/*============================ MACROFIED FUNCTIONS ===========================*/
36
/*============================ TYPES =========================================*/
37
/*============================ GLOBAL VARIABLES ==============================*/
38
39
VSF_MREPEAT
(
USB_DC_COUNT
,
USB_DC_DEF
,
NULL
)
40
41
/*============================ INCLUDES ======================================*/
42
/*============================ PROTOTYPES ====================================*/
43
44
45
#endif
46
/* EOF */
usbd.h
USB_DC_DEF
#define USB_DC_DEF(__N, __VALUE)
Definition
usb.h:39
USB_DC_COUNT
#define USB_DC_COUNT
Definition
device.h:73
NULL
#define NULL
Definition
stddef.h:52
usbhd_hcd.h
vsf_hal_cfg.h
VSF_MREPEAT
#define VSF_MREPEAT(__COUNT, __MACRO, __PARAM)
Definition
vsf_repeat_macro.h:51
Generated by
1.9.8