35#include "esp_intr_alloc.h"
36#include "soc/periph_defs.h"
39#define DWC2_REG_BASE 0x60080000UL
44 { .reg_base = DWC2_REG_BASE, .irqnum = 0, .ep_count = DWC2_EP_MAX, .ep_fifo_size = 1024 }
47static intr_handle_t usb_ih;
49static void dcd_int_handler_wrap(
void* arg)
56static inline void dwc2_dcd_int_enable (uint8_t rhport)
59 esp_intr_alloc(ETS_USB_INTR_SOURCE, ESP_INTR_FLAG_LOWMED, dcd_int_handler_wrap, NULL, &usb_ih);
63static inline void dwc2_dcd_int_disable (uint8_t rhport)
66 esp_intr_free(usb_ih);
69static inline void dwc2_remote_wakeup_delay(
void)
71 vTaskDelay(pdMS_TO_TICKS(1));
75static inline void dwc2_phy_init(
dwc2_regs_t * dwc2, uint8_t hs_phy_type)
84static inline void dwc2_phy_update(
dwc2_regs_t * dwc2, uint8_t hs_phy_type)
Definition dwc2_type.h:28
Definition dwc2_type.h:191