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

Common configuration for STM32 OTG HS peripheral with on-chip FS PHY. More...

Detailed Description

Common configuration for STM32 OTG HS peripheral with on-chip FS PHY.

All STM32 boards which use the on-chip FS PHY for the USB OTG HS peripheral use the same configuration. Therefore a common configuration file can be used for these boards.

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

Definition in file cfg_usb_otg_hs_phy_fs.h.

#include "periph_cpu.h"
#include "usbdev_synopsys_dwc2.h"
+ Include dependency graph for cfg_usb_otg_hs_phy_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_HS_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_HS_ENABLED

#define DWC2_USB_OTG_HS_ENABLED

Enable the full speed USB OTG peripheral.

Definition at line 36 of file cfg_usb_otg_hs_phy_fs.h.

◆ USBDEV_NUMOF

#define USBDEV_NUMOF   ARRAY_SIZE(dwc2_usb_otg_fshs_config)

Number of available USB OTG peripherals.

Definition at line 58 of file cfg_usb_otg_hs_phy_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_HS_PERIPH_BASE,
.type = DWC2_USB_OTG_HS,
.rcc_mask = RCC_AHB1ENR_OTGHSEN,
.irqn = OTG_HS_IRQn,
.ahb = AHB1,
.dm = GPIO_PIN(PORT_B, 14),
.dp = GPIO_PIN(PORT_B, 15),
.af = GPIO_AF12,
}
}
@ PORT_B
port B
Definition periph_cpu.h:48
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition periph_cpu.h:46
@ GPIO_AF12
use alternate function 12
Definition cpu_gpio.h:115
@ DWC2_USB_OTG_PHY_BUILTIN
on-chip FS PHY
@ DWC2_USB_OTG_HS
High speed peripheral.

Common USB OTG FS configuration.

Definition at line 41 of file cfg_usb_otg_hs_phy_fs.h.