Skip to content

Commit

Permalink
update(port/dwc2/usb_glue_st): support stm32h7rs
Browse files Browse the repository at this point in the history
  • Loading branch information
sakumisu committed Dec 16, 2024
1 parent ddc19a9 commit 05b46c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions port/dwc2/usb_glue_st.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 05b46c8

Please sign in to comment.