aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-12-31 08:48:15 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-12-31 08:48:15 +0000
commit1396446bb3b95a92aed20eab96bf9bb1e85f3b83 (patch)
tree7d672bed37ade7b65fa9bfa39ca25de8be0d2dc9 /os
parent09b2350eb5a398e9808777ce2bd2edd1ff7302c0 (diff)
downloadChibiOS-1396446bb3b95a92aed20eab96bf9bb1e85f3b83.tar.gz
ChibiOS-1396446bb3b95a92aed20eab96bf9bb1e85f3b83.tar.bz2
ChibiOS-1396446bb3b95a92aed20eab96bf9bb1e85f3b83.zip
Fixed bug #996.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12506 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os')
-rw-r--r--os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c b/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c
index 0357d1855..0b20805e0 100644
--- a/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c
+++ b/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c
@@ -140,6 +140,7 @@ static void otg_core_reset(USBDriver *usbp) {
/* Core reset and delay of at least 3 PHY cycles.*/
otgp->GRSTCTL = GRSTCTL_CSRST;
+ osalSysPolledDelayX(12);
while ((otgp->GRSTCTL & GRSTCTL_CSRST) != 0)
;