aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-11-28 17:58:01 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-11-28 17:58:01 +0000
commit61d16a339ee3ff93fcae6bf3c07afe0977715341 (patch)
tree99cf97c0f21c5fe8caadcd5124d85bb76e40491a /testhal/STM32
parent233ac50d2500c01f66f75ffc8ad000a18c6939f3 (diff)
downloadChibiOS-61d16a339ee3ff93fcae6bf3c07afe0977715341.tar.gz
ChibiOS-61d16a339ee3ff93fcae6bf3c07afe0977715341.tar.bz2
ChibiOS-61d16a339ee3ff93fcae6bf3c07afe0977715341.zip
Fixed bug #674 (again).
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8542 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32')
-rw-r--r--testhal/STM32/STM32F7xx/USB_CDC/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/testhal/STM32/STM32F7xx/USB_CDC/main.c b/testhal/STM32/STM32F7xx/USB_CDC/main.c
index 73ad1ef18..a2b393720 100644
--- a/testhal/STM32/STM32F7xx/USB_CDC/main.c
+++ b/testhal/STM32/STM32F7xx/USB_CDC/main.c
@@ -213,10 +213,15 @@ int main(void) {
chThdRelease(shelltp); /* Recovers memory of the previous shell. */
shelltp = NULL; /* Triggers spawning of a new shell. */
}
+#if 0
if (palReadPad(GPIOI, GPIOI_BUTTON_USER)) {
usbDisconnectBus(serusbcfg.usbp);
usbStop(serusbcfg.usbp);
+ chThdSleepMilliseconds(1500);
+ usbStart(serusbcfg.usbp, &usbcfg);
+ usbConnectBus(serusbcfg.usbp);
}
+#endif
chThdSleepMilliseconds(1000);
}
}