mirror of
https://github.com/elua/elua.git
synced 2025-01-25 01:02:54 +08:00
stm32f4: notify usb host of device startup
This commit is contained in:
parent
30ee5de1f9
commit
c216dd2396
@ -136,6 +136,8 @@ int platform_init()
|
|||||||
#else
|
#else
|
||||||
USBD_Init( &USB_OTG_dev, USB_OTG_FS_CORE_ID, &USR_desc, &USBD_CDC_cb, &USR_cb );
|
USBD_Init( &USB_OTG_dev, USB_OTG_FS_CORE_ID, &USR_desc, &USBD_CDC_cb, &USR_cb );
|
||||||
#endif
|
#endif
|
||||||
|
DCD_DevDisconnect( &USB_OTG_dev );
|
||||||
|
DCD_DevConnect( &USB_OTG_dev );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cmn_platform_init();
|
cmn_platform_init();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user