18#ifndef __HAL_DRIVER_AIR105_USB_H__
19#define __HAL_DRIVER_AIR105_USB_H__
25#if VSF_HAL_USE_USBD == ENABLED || VSF_HAL_USE_USBH == ENABLED
27#include "../__device.h"
34#if VSF_HAL_USE_USBD == ENABLED && VSF_HAL_USE_USBH == ENABLED
35# define __USB_OTG_DEF(__N, __VALUE) \
36 extern vsf_hw_usb_t USB_OTG##__N##_IP; \
37 extern const i_usb_hc_ip_t VSF_USB_HC##__N##_IP; \
38 extern const i_usb_dc_ip_t VSF_USB_DC##__N##_IP;
39#elif VSF_HAL_USE_USBD == ENABLED
40# define __USB_OTG_DEF(__N, __VALUE) \
41 extern vsf_hw_usb_t USB_OTG##__N##_IP; \
42 extern const i_usb_dc_ip_t VSF_USB_DC##__N##_IP;
43#elif VSF_HAL_USE_USBH == ENABLED
44# define __USB_OTG_DEF(__N, __VALUE) \
45 extern vsf_hw_usb_t USB_OTG##__N##_IP; \
46 extern const i_usb_hc_ip_t VSF_USB_HC##__N##_IP;
49#define _USB_OTG_DEF(__N, __VALUE) __USB_OTG_DEF(__N, __VALUE)
50#define USB_OTG_DEF(__N, __VALUE) _USB_OTG_DEF(__N, __VALUE)
54#ifdef VSF_MUSB_FDRC_PRIV_REG_T
71 volatile uint8_t Dummy[1 + 0x50];
82#if VSF_HAL_USE_USBD == ENABLED && VSF_HAL_USE_USBH == ENABLED
#define USB_OTG_COUNT
Definition device.h:75
#define USB_OTG_DEF(__N, __VALUE)
Definition usb.h:43
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_musb_fdrc_hw.h:153
volatile vk_musb_reg_t FAddr
Definition vsf_musb_fdrc_hw.h:154
volatile vk_musb_reg_t Frame2
Definition vsf_musb_fdrc_hw.h:167
volatile vk_musb_reg_t Power
Definition vsf_musb_fdrc_hw.h:155
volatile vk_musb_reg_t IntrRx2
Definition vsf_musb_fdrc_hw.h:159
volatile vk_musb_reg_t IntrUSBE
Definition vsf_musb_fdrc_hw.h:165
volatile vk_musb_reg_t IntrTx1
Definition vsf_musb_fdrc_hw.h:156
volatile vk_musb_reg_t Frame1
Definition vsf_musb_fdrc_hw.h:166
volatile vk_musb_reg_t IntrTx2
Definition vsf_musb_fdrc_hw.h:157
volatile vk_musb_reg_t Index
Definition vsf_musb_fdrc_hw.h:168
volatile vk_musb_reg_t IntrUSB
Definition vsf_musb_fdrc_hw.h:160
volatile vk_musb_reg_t IntrTx1E
Definition vsf_musb_fdrc_hw.h:161
volatile vk_musb_reg_t IntrRx1E
Definition vsf_musb_fdrc_hw.h:163
volatile vk_musb_reg_t IntrTx2E
Definition vsf_musb_fdrc_hw.h:162
volatile vk_musb_reg_t DevCtl
Definition vsf_musb_fdrc_hw.h:169
volatile vk_musb_reg_t IntrRx1
Definition vsf_musb_fdrc_hw.h:158
volatile vk_musb_reg_t IntrRx2E
Definition vsf_musb_fdrc_hw.h:164
uint8_t irqn
Definition usb.h:78
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
struct vk_romfs_header_t VSF_CAL_PACKED
void(* usb_ip_irqhandler_t)(void *param)
Definition vsf_template_usb.h:308