Loading...
Searching...
No Matches
cfg_usb_otg_fs.h File Reference

Common configuration for STM32 OTG FS peripheral. More...

Detailed Description

Common configuration for STM32 OTG FS peripheral.

Author
Koen Zandberg koen@.nosp@m.berg.nosp@m.zand..nosp@m.net

Definition in file cfg_usb_otg_fs.h.

#include "periph_cpu.h"
#include "usbdev_synopsys_dwc2.h"
+ Include dependency graph for cfg_usb_otg_fs.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define DWC2_USB_OTG_FS_ENABLED
 Enable the full speed USB OTG peripheral.
 
#define USBDEV_NUMOF   ARRAY_SIZE(dwc2_usb_otg_fshs_config)
 Number of available USB OTG peripherals.
 
static const dwc2_usb_otg_fshs_config_t dwc2_usb_otg_fshs_config []
 Common USB OTG FS configuration.
 

Macro Definition Documentation

◆ DWC2_USB_OTG_FS_ENABLED

#define DWC2_USB_OTG_FS_ENABLED

Enable the full speed USB OTG peripheral.

Definition at line 32 of file cfg_usb_otg_fs.h.

◆ USBDEV_NUMOF

#define USBDEV_NUMOF   ARRAY_SIZE(dwc2_usb_otg_fshs_config)

Number of available USB OTG peripherals.

Definition at line 54 of file cfg_usb_otg_fs.h.

Variable Documentation

◆ dwc2_usb_otg_fshs_config

const dwc2_usb_otg_fshs_config_t dwc2_usb_otg_fshs_config[]
static
Initial value:
= {
{
.periph = USB_OTG_FS_PERIPH_BASE,
.type = DWC2_USB_OTG_FS,
.rcc_mask = RCC_AHB2ENR_OTGFSEN,
.irqn = OTG_FS_IRQn,
.ahb = AHB2,
.dm = GPIO_PIN(PORT_A, 11),
.dp = GPIO_PIN(PORT_A, 12),
.af = GPIO_AF10,
}
}
@ PORT_A
port A
Definition periph_cpu.h:47
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition periph_cpu.h:46
@ GPIO_AF10
use alternate function 10
Definition cpu_gpio.h:113
@ DWC2_USB_OTG_PHY_BUILTIN
on-chip FS PHY
@ DWC2_USB_OTG_FS
Full speed peripheral.

Common USB OTG FS configuration.

Definition at line 37 of file cfg_usb_otg_fs.h.