libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
#include <string.h>
#include <libopencm3/cm3/common.h>
#include <libopencm3/stm32/tools.h>
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/usb/usbd.h>
#include <libopencm3/usb/dwc/otg_hs.h>
#include "usb_private.h"
#include "usb_dwc_common.h"
Go to the source code of this file.
Macros | |
#define | RX_FIFO_SIZE 512 |
Functions | |
static usbd_device * | stm32f207_usbd_init (void) |
Initialize the USB device controller hardware of the STM32. More... | |
Variables | |
static struct _usbd_device | usbd_dev |
const struct _usbd_driver | stm32f207_usb_driver |
#define RX_FIFO_SIZE 512 |
Definition at line 30 of file usb_f207.c.
|
static |
Initialize the USB device controller hardware of the STM32.
Definition at line 54 of file usb_f207.c.
References OTG_DCFG_DSPD, OTG_DIEPMSK_XFRCM, OTG_GAHBCFG_GINT, OTG_GCCFG_PWRDWN, OTG_GCCFG_VBUSBSEN, OTG_GINTMSK_ENUMDNEM, OTG_GINTMSK_IEPINT, OTG_GINTMSK_RXFLVLM, OTG_GINTMSK_USBSUSPM, OTG_GINTMSK_WUIM, OTG_GINTSTS_MMIS, OTG_GRSTCTL_AHBIDL, OTG_GRSTCTL_CSRST, OTG_GUSBCFG_FDMOD, OTG_GUSBCFG_PHYSEL, OTG_GUSBCFG_TRDT_MASK, OTG_HS_DAINTMSK, OTG_HS_DCFG, OTG_HS_DIEPMSK, OTG_HS_GAHBCFG, OTG_HS_GCCFG, OTG_HS_GINTMSK, OTG_HS_GINTSTS, OTG_HS_GRSTCTL, OTG_HS_GRXFSIZ, OTG_HS_GUSBCFG, OTG_HS_PCGCCTL, RCC_OTGHS, rcc_periph_clock_enable(), stm32f207_usb_driver, and usbd_dev.
|
static |
Definition at line 34 of file usb_f207.c.
Referenced by stm32f207_usbd_init().