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

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

Detailed Description

Common configuration for STM32 OTG FS peripheral for U5 family.

Author
Koen Zandberg koen@.nosp@m.berg.nosp@m.zand..nosp@m.net
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net

Definition in file cfg_usb_otg_fs_u5.h.

#include "periph_cpu.h"
#include "usbdev_synopsys_dwc2.h"
+ Include dependency graph for cfg_usb_otg_fs_u5.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 34 of file cfg_usb_otg_fs_u5.h.

◆ USBDEV_NUMOF

#define USBDEV_NUMOF   ARRAY_SIZE(dwc2_usb_otg_fshs_config)

Number of available USB OTG peripherals.

Definition at line 56 of file cfg_usb_otg_fs_u5.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_BASE,
.type = DWC2_USB_OTG_FS,
.rcc_mask = RCC_AHB2ENR1_OTGEN,
.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 39 of file cfg_usb_otg_fs_u5.h.