cfg_usb_otg_hs_fs.h File Reference

Common configuration for STM32 OTG HS peripheral with FS phy. More...

Detailed Description

Common configuration for STM32 OTG HS peripheral with FS phy.

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

Definition in file cfg_usb_otg_hs_fs.h.

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

Go to the source code of this file.

Macros

#define USBDEV_NUMOF   ARRAY_SIZE(stm32_usb_otg_fshs_config)
 Number of available USB OTG peripherals.
 
#define STM32_USB_OTG_HS_ENABLED
 Enable the full speed USB OTG peripheral.
 

common USB OTG FS configuration

static const stm32_usb_otg_fshs_config_t stm32_usb_otg_fshs_config []
 

Variable Documentation

◆ stm32_usb_otg_fshs_config

const stm32_usb_otg_fshs_config_t stm32_usb_otg_fshs_config[]
static
Initial value:
= {
{
.periph = (uint8_t *)USB_OTG_HS_PERIPH_BASE,
.rcc_mask = RCC_AHB1ENR_OTGHSEN,
.phy = STM32_USB_OTG_PHY_BUILTIN,
.irqn = OTG_HS_IRQn,
.ahb = AHB1,
.dm = GPIO_PIN(PORT_B, 14),
.dp = GPIO_PIN(PORT_B, 15),
.af = GPIO_AF12,
}
}

Definition at line 37 of file cfg_usb_otg_hs_fs.h.

STM32_USB_OTG_HS
@ STM32_USB_OTG_HS
High speed peripheral.
Definition: periph_cpu.h:810
GPIO_AF12
@ GPIO_AF12
use alternate function 12
Definition: periph_cpu_common.h:98
GPIO_PIN
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:35
PORT_B
@ PORT_B
port B
Definition: periph_cpu.h:37