From c216dd23965b3f51d4f1339f9704861bfc6cb195 Mon Sep 17 00:00:00 2001 From: James Snyder Date: Wed, 18 Jun 2014 11:38:28 -0500 Subject: [PATCH] stm32f4: notify usb host of device startup --- src/platform/stm32f4/platform.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/stm32f4/platform.c b/src/platform/stm32f4/platform.c index e4f800f4..975a2b92 100644 --- a/src/platform/stm32f4/platform.c +++ b/src/platform/stm32f4/platform.c @@ -136,6 +136,8 @@ int platform_init() #else USBD_Init( &USB_OTG_dev, USB_OTG_FS_CORE_ID, &USR_desc, &USBD_CDC_cb, &USR_cb ); #endif + DCD_DevDisconnect( &USB_OTG_dev ); + DCD_DevConnect( &USB_OTG_dev ); #endif cmn_platform_init();