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

Go to the source code of this file.

Functions

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 void dwc2_phy_init (dwc2_regs_t *dwc2, uint8_t hs_phy_type)
 
static void dwc2_phy_update (dwc2_regs_t *dwc2, uint8_t hs_phy_type)
 

Variables

static const dwc2_controller_t _dwc2_controller []
 

Function Documentation

◆ 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 135 of file dwc2_stm32.h.

◆ dwc2_phy_init()

static void dwc2_phy_init ( dwc2_regs_t dwc2,
uint8_t  hs_phy_type 
)
inlinestatic

Definition at line 158 of file dwc2_stm32.h.

◆ dwc2_phy_update()

static void dwc2_phy_update ( dwc2_regs_t dwc2,
uint8_t  hs_phy_type 
)
inlinestatic

Definition at line 233 of file dwc2_stm32.h.

◆ dwc2_remote_wakeup_delay()

static TU_ATTR_ALWAYS_INLINE void dwc2_remote_wakeup_delay ( void  )
inlinestatic

Definition at line 149 of file dwc2_stm32.h.

Variable Documentation

◆ _dwc2_controller

const dwc2_controller_t _dwc2_controller[]
static
Initial value:
= {
#ifdef USB_OTG_FS_PERIPH_BASE
{ .reg_base = USB_OTG_FS_PERIPH_BASE, .irqnum = OTG_FS_IRQn, .ep_count = EP_MAX_FS, .ep_fifo_size = EP_FIFO_SIZE_FS },
#endif
#ifdef USB_OTG_HS_PERIPH_BASE
{ .reg_base = USB_OTG_HS_PERIPH_BASE, .irqnum = OTG_HS_IRQn, .ep_count = EP_MAX_HS, .ep_fifo_size = EP_FIFO_SIZE_HS },
#endif
}

Definition at line 118 of file dwc2_stm32.h.