From d77837aaea0627bb292fa9cc6835ddb3b355703d Mon Sep 17 00:00:00 2001 From: dragonmux Date: Wed, 17 Apr 2024 00:20:39 +0100 Subject: [PATCH] usb/dwc: Added some defines that were missing for the DWC2 in the STM32H7 parts --- include/libopencm3/usb/dwc/otg_common.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/libopencm3/usb/dwc/otg_common.h b/include/libopencm3/usb/dwc/otg_common.h index 172e1fc931..ac5046b509 100644 --- a/include/libopencm3/usb/dwc/otg_common.h +++ b/include/libopencm3/usb/dwc/otg_common.h @@ -227,6 +227,11 @@ #define OTG_GCCFG_SOFOUTEN (1U << 20U) #define OTG_GCCFG_VBUSBSEN (1U << 19U) #define OTG_GCCFG_VBUSASEN (1U << 18U) +/** Only on cores >= 0x2300 */ +#define OTG_GCCFG_SDEN (1U << 20U) +#define OTG_GCCFG_PDEN (1U << 19U) +#define OTG_GCCFG_DCDEN (1U << 18U) +#define OTG_GCCFG_BCDEN (1U << 17U) /* Bit 17 - Reserved */ #define OTG_GCCFG_PWRDWN (1U << 16U) /* Bits 15:0 - Reserved */