Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
cfg_usbdev_default.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2023 Gunar Schorcht <gunar@schorcht.net>
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
9
#pragma once
10
20
21
#include "vendor/usbdev_gd32v.h"
22
#include "
usbdev_synopsys_dwc2.h
"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
35
#define DWC2_USB_OTG_FS_ENABLED
36
40
static
const
dwc2_usb_otg_fshs_config_t
dwc2_usb_otg_fshs_config
[] = {
41
{
42
.periph = USB_OTG_FS_PERIPH_BASE,
43
.type =
DWC2_USB_OTG_FS
,
44
.phy =
DWC2_USB_OTG_PHY_BUILTIN
,
45
.rcu_mask = RCU_AHBEN_USBFSEN_Msk,
46
.irqn = USBFS_IRQn,
47
.bus =
AHB
,
48
}
49
};
50
54
#define USBDEV_NUMOF ARRAY_SIZE(dwc2_usb_otg_fshs_config)
56
57
#ifdef __cplusplus
58
}
59
#endif
60
dwc2_usb_otg_fshs_config
static const dwc2_usb_otg_fshs_config_t dwc2_usb_otg_fshs_config[]
Common USB OTG FS configuration.
Definition
cfg_usbdev_default.h:40
AHB
@ AHB
Advanced High-performance Bus.
Definition
periph_cpu.h:77
dwc2_usb_otg_fshs_config_t
USB OTG configuration.
Definition
usbdev_synopsys_dwc2.h:79
usbdev_synopsys_dwc2.h
Low level USB FS/HS driver definitions for MCUs with Synopsys DWC2 IP core.
DWC2_USB_OTG_PHY_BUILTIN
@ DWC2_USB_OTG_PHY_BUILTIN
on-chip FS PHY
Definition
usbdev_synopsys_dwc2.h:71
DWC2_USB_OTG_FS
@ DWC2_USB_OTG_FS
Full speed peripheral.
Definition
usbdev_synopsys_dwc2.h:47
Generated on Thu Jul 3 2025 17:41:19 by
1.13.2