diff options
-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);
|