aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32F1xx/USB_CDC
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-06-17 06:53:49 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-06-17 06:53:49 +0000
commitc6914081835f10258d873af8526ae405ffe5b25c (patch)
treeaf4ea4874a9c7c3b982fe14420bfafb4d9351922 /testhal/STM32F1xx/USB_CDC
parenta8f01e5c6b04c07d6fbc32fb1ef4de527d1003de (diff)
downloadChibiOS-c6914081835f10258d873af8526ae405ffe5b25c.tar.gz
ChibiOS-c6914081835f10258d873af8526ae405ffe5b25c.tar.bz2
ChibiOS-c6914081835f10258d873af8526ae405ffe5b25c.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4283 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32F1xx/USB_CDC')
-rw-r--r--testhal/STM32F1xx/USB_CDC/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/testhal/STM32F1xx/USB_CDC/main.c b/testhal/STM32F1xx/USB_CDC/main.c
index d4625066f..b1af1b1bd 100644
--- a/testhal/STM32F1xx/USB_CDC/main.c
+++ b/testhal/STM32F1xx/USB_CDC/main.c
@@ -437,6 +437,8 @@ int main(void) {
/*
* Activates the USB driver and then the USB bus pull-up on D+.
*/
+ usbDisconnectBus(serusbcfg.usbp);
+ chThdSleepMilliseconds(1000);
sduObjectInit(&SDU1);
sduStart(&SDU1, &serusbcfg);
usbConnectBus(serusbcfg.usbp);