summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2024-12-16 20:55:02 +0800
committersakumisu <[email protected]>2024-12-16 20:55:02 +0800
commit05b46c8badef609908ea993c01448328ceb99841 (patch)
treea4736a6006603c72414602b36ec99c91e7ff7d22
parentddc19a9d65823f517457447805fcfde8f4a6bb7f (diff)
update(port/dwc2/usb_glue_st): support stm32h7rs
-rw-r--r--port/dwc2/usb_glue_st.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/port/dwc2/usb_glue_st.c b/port/dwc2/usb_glue_st.c
index f73dc5e9..4dff31f8 100644
--- a/port/dwc2/usb_glue_st.c
+++ b/port/dwc2/usb_glue_st.c
@@ -166,6 +166,8 @@ uint32_t usbd_get_dwc2_gccfg_conf(uint32_t reg_base)
USB_OTG_GLB->GCCFG = (1 << 23);
usb_hsphy_init(25000000U);
return (1 << 23); /* Enable USB HS PHY USBx->GCCFG |= USB_OTG_GCCFG_PHYHSEN;*/
+#elif __has_include("stm32h7rsxx.h")
+ return (1 << 21);
#else
return 0;
#endif
@@ -192,6 +194,8 @@ uint32_t usbh_get_dwc2_gccfg_conf(uint32_t reg_base)
USB_OTG_GLB->GCCFG = (1 << 23);
usb_hsphy_init(25000000U);
return (1 << 23); /* Enable USB HS PHY USBx->GCCFG |= USB_OTG_GCCFG_PHYHSEN;*/
+#elif __has_include("stm32h7rsxx.h")
+ return (1 << 21);
#else
return 0;
#endif