mirror of
https://github.com/hathach/tinyusb.git
synced 2026-03-10 09:34:43 +00:00
@ -416,11 +416,6 @@ bool hcd_init(uint8_t rhport, const tusb_rhport_init_t* rh_init) {
|
||||
|
||||
// force host mode and wait for mode switch
|
||||
dwc2->gusbcfg = (dwc2->gusbcfg & ~GUSBCFG_FDMOD) | GUSBCFG_FHMOD;
|
||||
#if CFG_TUSB_MCU == OPT_MCU_STM32N6
|
||||
// No hardware detection of Vbus B-session is available on the STM32N6
|
||||
dwc2->stm32_gccfg &= ~STM32_GCCFG_VBVALOVAL;
|
||||
#endif
|
||||
|
||||
while ((dwc2->gintsts & GINTSTS_CMOD) != GINTSTS_CMODE_HOST) {}
|
||||
|
||||
#ifdef TUP_USBIP_DWC2_STM32
|
||||
|
||||
Reference in New Issue
Block a user