aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-11-28 18:15:01 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-11-28 18:15:01 +0000
commit59fb4e9ad760ad912f446387283d8177e0219fb6 (patch)
tree4ff02b42cbc46038825e808ee7fea8f8f7d93faa
parent61d16a339ee3ff93fcae6bf3c07afe0977715341 (diff)
downloadChibiOS-59fb4e9ad760ad912f446387283d8177e0219fb6.tar.gz
ChibiOS-59fb4e9ad760ad912f446387283d8177e0219fb6.tar.bz2
ChibiOS-59fb4e9ad760ad912f446387283d8177e0219fb6.zip
Fixed bug #674 (the revenge).
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8545 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/hal/ports/STM32/LLD/OTGv1/usb_lld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c b/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c
index ae944f77d..58ea74870 100644
--- a/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c
+++ b/os/hal/ports/STM32/LLD/OTGv1/usb_lld.c
@@ -147,11 +147,11 @@ static void otg_disable_ep(USBDriver *usbp) {
unsigned i;
for (i = 0; i <= usbp->otgparams->num_endpoints; i++) {
- otgp->ie[i].DIEPCTL &= ~DIEPCTL_EPENA;
+ otgp->ie[i].DIEPCTL = 0;
otgp->ie[i].DIEPTSIZ = 0;
otgp->ie[i].DIEPINT = 0xFFFFFFFF;
- otgp->oe[i].DOEPCTL &= ~DOEPCTL_EPENA;
+ otgp->oe[i].DOEPCTL = 0;
otgp->oe[i].DOEPTSIZ = 0;
otgp->oe[i].DOEPINT = 0xFFFFFFFF;
}