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 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.

Macros

#define USBDEV_NUMOF   ARRAY_SIZE(stm32_usb_otg_fshs_config)
 Number of available USB OTG peripherals.
 
#define STM32_USB_OTG_FS_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_FS_PERIPH_BASE,
.rcc_mask = RCC_AHB2ENR_OTGFSEN,
.phy = STM32_USB_OTG_PHY_BUILTIN,
.irqn = OTG_FS_IRQn,
.ahb = AHB2,
.dm = GPIO_PIN(PORT_A, 11),
.dp = GPIO_PIN(PORT_A, 12),
.af = GPIO_AF10,
}
}

Definition at line 37 of file cfg_usb_otg_fs.h.

GPIO_AF10
@ GPIO_AF10
use alternate function 10
Definition: periph_cpu_common.h:96
PORT_A
@ PORT_A
port A
Definition: periph_cpu.h:36
STM32_USB_OTG_FS
@ STM32_USB_OTG_FS
Full speed peripheral.
Definition: periph_cpu.h:809
GPIO_PIN
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:35