18#ifndef __VSF_DWCOTG_COMMON_H__
19#define __VSF_DWCOTG_COMMON_H__
25#if (VSF_USE_USB_DEVICE == ENABLED && VSF_USBD_USE_DCD_DWCOTG == ENABLED)\
26 || (VSF_USE_USB_HOST == ENABLED && VSF_USBH_USE_HCD_DWCOTG == ENABLED)
38#ifndef VSF_DWCOTG_DCD_CFG_EP_NUM
39# ifdef USB_DWCOTG_MAX_EP_NUM
40# define VSF_DWCOTG_DCD_CFG_EP_NUM USB_DWCOTG_MAX_EP_NUM
42# define VSF_DWCOTG_DCD_CFG_EP_NUM 16
unsigned int uint32_t
Definition lvgl.h:43
unsigned char uint8_t
Definition lvgl.h:40
Definition dwcotg_regs.h:43
Definition dwcotg_regs.h:353
Definition dwcotg_regs.h:766
Definition dwcotg_regs.h:846
Definition dwcotg_regs.h:635
Definition dwcotg_regs.h:543
Definition vsf_dwcotg_hw.h:38
Definition vsf_dwcotg_common.h:49
uint8_t dma_en
Definition vsf_dwcotg_common.h:56
uint8_t feature
Definition vsf_dwcotg_common.h:58
uint8_t ulpi_en
Definition vsf_dwcotg_common.h:53
uint8_t speed
Definition vsf_dwcotg_common.h:52
uint8_t vbus_en
Definition vsf_dwcotg_common.h:55
uint8_t utmi_en
Definition vsf_dwcotg_common.h:54
Definition vsf_dwcotg_common.h:62
struct dwcotg_dev_in_ep_regs_t * in_regs
Definition vsf_dwcotg_common.h:79
struct dwcotg_host_global_regs_t * global_regs
Definition vsf_dwcotg_common.h:68
volatile uint32_t * dfifo[VSF_DWCOTG_DCD_CFG_EP_NUM]
Definition vsf_dwcotg_common.h:85
struct dwcotg_dev_global_regs_t * global_regs
Definition vsf_dwcotg_common.h:76
volatile uint32_t * hprt0
Definition vsf_dwcotg_common.h:70
struct dwcotg_core_global_regs_t * global_regs
Definition vsf_dwcotg_common.h:64
struct dwcotg_hc_regs_t * hc_regs
Definition vsf_dwcotg_common.h:72
struct dwcotg_dev_out_ep_regs_t * out_regs
Definition vsf_dwcotg_common.h:81
Definition vsf_dwcotg_common.h:88
vk_dwcotg_reg_t reg
Definition vsf_dwcotg_common.h:89
uint8_t ep_num
Definition vsf_dwcotg_common.h:90
void vk_dwcotg_phy_init(vk_dwcotg_t *dwcotg, const vk_dwcotg_param_t *param, vk_dwcotg_hw_info_t *hw_info)
Definition vsf_dwcotg_common.c:42
#define VSF_DWCOTG_DCD_CFG_EP_NUM
Definition vsf_dwcotg_common.h:42