cfg_usb_otg_hs_phy_fs.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 Koen Zandberg
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 
23 #ifndef CFG_USB_OTG_HS_PHY_FS_H
24 #define CFG_USB_OTG_HS_PHY_FS_H
25 
26 #include "periph_cpu.h"
27 #include "usbdev_synopsys_dwc2.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
36 #define DWC2_USB_OTG_HS_ENABLED
37 
42  {
43  .periph = USB_OTG_HS_PERIPH_BASE,
44  .type = DWC2_USB_OTG_HS,
46  .rcc_mask = RCC_AHB1ENR_OTGHSEN,
47  .irqn = OTG_HS_IRQn,
48  .ahb = AHB1,
49  .dm = GPIO_PIN(PORT_B, 14),
50  .dp = GPIO_PIN(PORT_B, 15),
51  .af = GPIO_AF12,
52  }
53 };
54 
58 #define USBDEV_NUMOF ARRAY_SIZE(dwc2_usb_otg_fshs_config)
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #endif /* CFG_USB_OTG_HS_PHY_FS_H */
@ PORT_B
port B
Definition: periph_cpu.h:48
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:46
static const dwc2_usb_otg_fshs_config_t dwc2_usb_otg_fshs_config[]
Common USB OTG FS configuration.
@ GPIO_AF12
use alternate function 12
Definition: cpu_gpio.h:115
USB OTG configuration.
uintptr_t periph
USB peripheral base address.
Low level USB FS/HS driver definitions for MCUs with Synopsys DWC2 IP core.
@ DWC2_USB_OTG_PHY_BUILTIN
on-chip FS PHY
@ DWC2_USB_OTG_HS
High speed peripheral.