Open FFBoard
Open source force feedback firmware
dwc2_esp32.h File Reference

Go to the source code of this file.

Functions

static void dwc2_int_handler_wrap (void *arg)
 
static TU_ATTR_ALWAYS_INLINE void dwc2_int_set (uint8_t rhport, tusb_role_t role, bool enabled)
 
static TU_ATTR_ALWAYS_INLINE void dwc2_remote_wakeup_delay (void)
 
static TU_ATTR_ALWAYS_INLINE void dwc2_phy_init (dwc2_regs_t *dwc2, uint8_t hs_phy_type)
 
static TU_ATTR_ALWAYS_INLINE void dwc2_phy_update (dwc2_regs_t *dwc2, uint8_t hs_phy_type)
 

Variables

 C
 
static const dwc2_controller_t _dwc2_controller []
 
static intr_handle_t usb_ih [TU_ARRAY_SIZE(_dwc2_controller)]
 

Function Documentation

◆ dwc2_int_handler_wrap()

static void dwc2_int_handler_wrap ( void *  arg)
static

Definition at line 68 of file dwc2_esp32.h.

◆ dwc2_int_set()

static TU_ATTR_ALWAYS_INLINE void dwc2_int_set ( uint8_t  rhport,
tusb_role_t  role,
bool  enabled 
)
inlinestatic

Definition at line 83 of file dwc2_esp32.h.

◆ dwc2_phy_init()

static TU_ATTR_ALWAYS_INLINE void dwc2_phy_init ( dwc2_regs_t dwc2,
uint8_t  hs_phy_type 
)
inlinestatic

Definition at line 100 of file dwc2_esp32.h.

◆ dwc2_phy_update()

static TU_ATTR_ALWAYS_INLINE void dwc2_phy_update ( dwc2_regs_t dwc2,
uint8_t  hs_phy_type 
)
inlinestatic

Definition at line 108 of file dwc2_esp32.h.

◆ dwc2_remote_wakeup_delay()

static TU_ATTR_ALWAYS_INLINE void dwc2_remote_wakeup_delay ( void  )
inlinestatic

Definition at line 95 of file dwc2_esp32.h.

Variable Documentation

◆ _dwc2_controller

const dwc2_controller_t _dwc2_controller[]
static
Initial value:
= {
{ .reg_base = DWC2_FS_REG_BASE, .irqnum = ETS_USB_OTG11_CH0_INTR_SOURCE, .ep_count = 7, .ep_in_count = 5, .ep_fifo_size = 1024 },
{ .reg_base = DWC2_HS_REG_BASE, .irqnum = ETS_USB_OTG_INTR_SOURCE, .ep_count = 16, .ep_in_count = 8, .ep_fifo_size = 4096 }
}

Definition at line 57 of file dwc2_esp32.h.

◆ C

C
extern
Initial value:
{
#endif
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_intr_alloc.h"
#include "soc/periph_defs.h"
#include "soc/usb_wrap_struct.h"
#if TU_CHECK_MCU(OPT_MCU_ESP32S2, OPT_MCU_ESP32S3)
#define DWC2_FS_REG_BASE 0x60080000UL
#define DWC2_EP_MAX 7
static const dwc2_controller_t _dwc2_controller[] = {
{ .reg_base = DWC2_FS_REG_BASE, .irqnum = ETS_USB_INTR_SOURCE, .ep_count = 7, .ep_in_count = 5, .ep_fifo_size = 1024 }
}
static const dwc2_controller_t _dwc2_controller[]
Definition: dwc2_esp32.h:57

◆ usb_ih

intr_handle_t usb_ih[TU_ARRAY_SIZE(_dwc2_controller)]
static

Definition at line 66 of file dwc2_esp32.h.