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

Default USB OTG configuration for GD32 RISC-V board. More...

Detailed Description

Default USB OTG configuration for GD32 RISC-V board.

Author
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net

Definition in file cfg_usbdev_default.h.

#include "vendor/usbdev_gd32v.h"
#include "usbdev_synopsys_dwc2.h"
+ Include dependency graph for cfg_usbdev_default.h:

Go to the source code of this file.

USB OTG configuration

#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 36 of file cfg_usbdev_default.h.

◆ USBDEV_NUMOF

#define USBDEV_NUMOF   ARRAY_SIZE(dwc2_usb_otg_fshs_config)

Number of available USB OTG peripherals.

Definition at line 55 of file cfg_usbdev_default.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,
.rcu_mask = RCU_AHBEN_USBFSEN_Msk,
.irqn = USBFS_IRQn,
.bus = AHB,
}
}
@ AHB
Advanced High-performance Bus.
Definition periph_cpu.h:78
@ DWC2_USB_OTG_PHY_BUILTIN
on-chip FS PHY
@ DWC2_USB_OTG_FS
Full speed peripheral.

Common USB OTG FS configuration.

Definition at line 41 of file cfg_usbdev_default.h.