mirror of
https://github.com/sakumisu/CherryUSB.git
synced 2025-05-09 00:21:44 +08:00
update(port/dwc2/usb_glue_st): support stm32h7rs
This commit is contained in:
parent
ddc19a9d65
commit
05b46c8bad
@ -166,6 +166,8 @@ uint32_t usbd_get_dwc2_gccfg_conf(uint32_t reg_base)
|
|||||||
USB_OTG_GLB->GCCFG = (1 << 23);
|
USB_OTG_GLB->GCCFG = (1 << 23);
|
||||||
usb_hsphy_init(25000000U);
|
usb_hsphy_init(25000000U);
|
||||||
return (1 << 23); /* Enable USB HS PHY USBx->GCCFG |= USB_OTG_GCCFG_PHYHSEN;*/
|
return (1 << 23); /* Enable USB HS PHY USBx->GCCFG |= USB_OTG_GCCFG_PHYHSEN;*/
|
||||||
|
#elif __has_include("stm32h7rsxx.h")
|
||||||
|
return (1 << 21);
|
||||||
#else
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
@ -192,6 +194,8 @@ uint32_t usbh_get_dwc2_gccfg_conf(uint32_t reg_base)
|
|||||||
USB_OTG_GLB->GCCFG = (1 << 23);
|
USB_OTG_GLB->GCCFG = (1 << 23);
|
||||||
usb_hsphy_init(25000000U);
|
usb_hsphy_init(25000000U);
|
||||||
return (1 << 23); /* Enable USB HS PHY USBx->GCCFG |= USB_OTG_GCCFG_PHYHSEN;*/
|
return (1 << 23); /* Enable USB HS PHY USBx->GCCFG |= USB_OTG_GCCFG_PHYHSEN;*/
|
||||||
|
#elif __has_include("stm32h7rsxx.h")
|
||||||
|
return (1 << 21);
|
||||||
#else
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user