diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-04-27 10:17:38 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-04-27 10:17:38 +0000 |
commit | 77bd97a9dbaffecbc753f46fe01bd54d9ad4dd3c (patch) | |
tree | 1fe76ca2b808581f6b44ad5b66cfdf6e6eaa2064 | |
parent | 4434fed8d81d9bc3a41a02a645bfd719ff941f73 (diff) | |
download | ChibiOS-77bd97a9dbaffecbc753f46fe01bd54d9ad4dd3c.tar.gz ChibiOS-77bd97a9dbaffecbc753f46fe01bd54d9ad4dd3c.tar.bz2 ChibiOS-77bd97a9dbaffecbc753f46fe01bd54d9ad4dd3c.zip |
Fixed bug #405.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5635 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | readme.txt | 1 | ||||
-rw-r--r-- | testhal/STM32F4xx/USB_CDC/main.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/readme.txt b/readme.txt index f516bd5e9..7b36831e1 100644 --- a/readme.txt +++ b/readme.txt @@ -89,6 +89,7 @@ *****************************************************************************
*** 2.5.2 ***
+- FIX: Fixed USB driver cannot be stopped (bug #405)(backported to 2.4.4).
- FIX: Fixed several spelling errors (bug #404).
- FIX: Fixed serial port in STM32F3 discovery test case (bug #402).
- FIX: Fixed add %i to chprintf (bug #401).
diff --git a/testhal/STM32F4xx/USB_CDC/main.c b/testhal/STM32F4xx/USB_CDC/main.c index 0d38a7b20..9831e19bb 100644 --- a/testhal/STM32F4xx/USB_CDC/main.c +++ b/testhal/STM32F4xx/USB_CDC/main.c @@ -476,6 +476,10 @@ int main(void) { usbStart(serusbcfg.usbp, &usbcfg);
usbConnectBus(serusbcfg.usbp);
+ /*
+ * Stopping and restarting the USB in order to test the stop procedure. The
+ * following lines are not usually required.
+ */
chThdSleepMilliseconds(3000);
usbDisconnectBus(serusbcfg.usbp);
usbStop(serusbcfg.usbp);
|