18#ifndef __OSA_HAL_DRIVER_GEEHY_APM32F4_USB_H__
19#define __OSA_HAL_DRIVER_GEEHY_APM32F4_USB_H__
24#if (VSF_USE_USB_DEVICE == ENABLED && VSF_USBD_USE_DCD_DWCOTG == ENABLED) \
25 || (VSF_USE_USB_HOST == ENABLED && VSF_USBH_USE_HCD_DWCOTG == ENABLED)
35#define ____USB_OTG_DEF(__N, __VALUE) \
36 extern vsf_hw_usb_t USB_OTG##__N##_IP; \
37 extern const i_usb_dc_ip_t VSF_USB_DC##__N##_IP; \
38 extern const i_usb_hc_ip_t VSF_USB_HC##__N##_IP;
39#define __USB_OTG_DEF(__N, __VALUE) ____USB_OTG_DEF(__N, __VALUE)
40#define USB_OTG_DEF(__N, __VALUE) __USB_OTG_DEF(__N, __VALUE)
#define USB_OTG_DEF(__N, __VALUE)
Definition usb.h:43
#define VSF_HW_USB_OTG_COUNT
Definition device.h:62
struct vsf_hw_usb_t vsf_hw_usb_t
struct vsf_hw_usb_const_t vsf_hw_usb_const_t
#define NULL
Definition lvgl.h:26
unsigned char uint8_t
Definition lvgl.h:40
Definition vsf_dwcotg_hw.h:38
void * phy_reg
Definition usb.h:49
uint8_t hc_ep_num
Definition usb.h:46
IRQn_Type irq
Definition usb.h:47
uint8_t dc_ep_num
Definition usb.h:45
void * reg
Definition usb.h:48
struct vsf_hw_usb_t::@508 callback
usb_ip_irqhandler_t irqhandler
Definition usb.h:56
void * param
Definition usb.h:57
bool is_host
Definition usb.h:54
#define VSF_MREPEAT(__COUNT, __MACRO, __PARAM)
Definition vsf_repeat_macro.h:51
void(* usb_ip_irqhandler_t)(void *param)
Definition vsf_template_usb.h:308