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_fs.h>
#include "usb_private.h"
#include "usb_dwc_common.h"
Go to the source code of this file.
Macros | |
#define | RX_FIFO_SIZE 128 |
Functions | |
static usbd_device * | stm32f107_usbd_init (void) |
Initialize the USB device controller hardware of the STM32. More... | |
Variables | |
static struct _usbd_device | usbd_dev |
const struct _usbd_driver | stm32f107_usb_driver |
#define RX_FIFO_SIZE 128 |
Definition at line 30 of file usb_f107.c.
|
static |
Initialize the USB device controller hardware of the STM32.
Definition at line 54 of file usb_f107.c.
References OTG_CID_HAS_VBDEN, OTG_DCFG_DSPD, OTG_DIEPMSK_XFRCM, OTG_FS_CID, OTG_FS_DAINTMSK, OTG_FS_DCFG, OTG_FS_DCTL, OTG_FS_DIEPMSK, OTG_FS_GAHBCFG, OTG_FS_GCCFG, OTG_FS_GINTMSK, OTG_FS_GINTSTS, OTG_FS_GRSTCTL, OTG_FS_GRXFSIZ, OTG_FS_GUSBCFG, OTG_FS_PCGCCTL, OTG_GAHBCFG_GINT, OTG_GCCFG_PWRDWN, OTG_GCCFG_VBDEN, 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, RCC_OTGFS, rcc_periph_clock_enable(), stm32f107_usb_driver, and usbd_dev.
|
static |
Definition at line 34 of file usb_f107.c.
Referenced by _usbd_control_in(), _usbd_control_out(), _usbd_control_setup(), _usbd_reset(), _usbd_standard_request(), _usbd_standard_request_device(), _usbd_standard_request_endpoint(), _usbd_standard_request_interface(), build_config_descriptor(), dwc_endpoints_reset(), dwc_ep_nak_set(), dwc_ep_read_packet(), dwc_ep_setup(), dwc_poll(), msc_control_request(), msc_data_rx_cb(), msc_data_tx_cb(), msc_set_config(), stall_transaction(), stm32f107_usbd_init(), usb_control_recv_chunk(), usb_control_request_dispatch(), usb_control_send_chunk(), usb_control_setup_read(), usb_control_setup_write(), usb_msc_init(), usb_standard_device_get_status(), usb_standard_endpoint_get_status(), usb_standard_endpoint_stall(), usb_standard_endpoint_unstall(), usb_standard_get_configuration(), usb_standard_get_descriptor(), usb_standard_get_interface(), usb_standard_interface_get_status(), usb_standard_set_address(), usb_standard_set_configuration(), usb_standard_set_interface(), usbd_disconnect(), usbd_ep_nak_set(), usbd_ep_read_packet(), usbd_ep_setup(), usbd_ep_stall_get(), usbd_ep_stall_set(), usbd_ep_write_packet(), usbd_init(), usbd_poll(), usbd_register_control_callback(), usbd_register_extra_string(), usbd_register_reset_callback(), usbd_register_resume_callback(), usbd_register_set_altsetting_callback(), usbd_register_set_config_callback(), usbd_register_sof_callback(), and usbd_register_suspend_callback().