38#define DWC2_REG_BASE (USB_BASE + offsetof(USB_TypeDef, GOTGCTL))
43 { .reg_base = DWC2_REG_BASE, .irqnum = USB_IRQn, .ep_count = DWC2_EP_MAX, .ep_fifo_size = 2048 }
47static inline void dwc2_dcd_int_enable(uint8_t rhport)
49 NVIC_EnableIRQ(_dwc2_controller[rhport].irqnum);
53static inline void dwc2_dcd_int_disable (uint8_t rhport)
55 NVIC_DisableIRQ(_dwc2_controller[rhport].irqnum);
58static inline void dwc2_remote_wakeup_delay(
void)
66static inline void dwc2_phy_init(
dwc2_regs_t * dwc2, uint8_t hs_phy_type)
72 USB->ROUTE = USB_ROUTE_PHYPEN;
76static inline void dwc2_phy_update(
dwc2_regs_t * dwc2, uint8_t hs_phy_type)
Definition dwc2_type.h:28
Definition dwc2_type.h:191