26#include "usb_private.h"
27#include "usb_dwc_common.h"
30#define RX_FIFO_SIZE 128
49 .set_address_before_status = 1,
void rcc_periph_clock_enable(enum rcc_periph_clken clken)
Enable Peripheral Clock in running mode.
struct _usbd_device usbd_device
const struct _usbd_driver stm32f107_usb_driver
#define OTG_GUSBCFG_FDMOD
#define OTG_DIEPMSK_XFRCM
#define OTG_GINTMSK_IEPINT
#define OTG_GRSTCTL_AHBIDL
#define OTG_GINTMSK_RXFLVLM
#define OTG_GRSTCTL_CSRST
#define OTG_CID_HAS_VBDEN
#define OTG_GUSBCFG_PHYSEL
#define OTG_GCCFG_VBDEN
Only on cores >= 0x2000.
#define OTG_GCCFG_VBUSBSEN
#define OTG_GINTMSK_ENUMDNEM
#define OTG_GUSBCFG_TRDT_MASK
#define OTG_GINTMSK_USBSUSPM
uint8_t dwc_ep_stall_get(usbd_device *usbd_dev, uint8_t addr)
void dwc_disconnect(usbd_device *usbd_dev, bool disconnected)
void dwc_endpoints_reset(usbd_device *usbd_dev)
uint16_t dwc_ep_write_packet(usbd_device *usbd_dev, uint8_t addr, const void *buf, uint16_t len)
uint16_t dwc_ep_read_packet(usbd_device *usbd_dev, uint8_t addr, void *buf, uint16_t len)
void dwc_set_address(usbd_device *usbd_dev, uint8_t addr)
void dwc_ep_nak_set(usbd_device *usbd_dev, uint8_t addr, uint8_t nak)
void dwc_ep_stall_set(usbd_device *usbd_dev, uint8_t addr, uint8_t stall)
void dwc_ep_setup(usbd_device *usbd_dev, uint8_t addr, uint8_t type, uint16_t max_size, void(*callback)(usbd_device *usbd_dev, uint8_t ep))
void dwc_poll(usbd_device *usbd_dev)
static usbd_device * stm32f107_usbd_init(void)
Initialize the USB device controller hardware of the STM32.
static struct _usbd_device usbd_dev