Fixed bug #674 (the revenge).

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8545 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Giovanni Di Sirio 2015-11-28 18:15:01 +00:00
parent 61d16a339e
commit 59fb4e9ad7
1 changed files with 2 additions and 2 deletions

View File

@ -147,11 +147,11 @@ static void otg_disable_ep(USBDriver *usbp) {
unsigned i; unsigned i;
for (i = 0; i <= usbp->otgparams->num_endpoints; 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].DIEPTSIZ = 0;
otgp->ie[i].DIEPINT = 0xFFFFFFFF; otgp->ie[i].DIEPINT = 0xFFFFFFFF;
otgp->oe[i].DOEPCTL &= ~DOEPCTL_EPENA; otgp->oe[i].DOEPCTL = 0;
otgp->oe[i].DOEPTSIZ = 0; otgp->oe[i].DOEPTSIZ = 0;
otgp->oe[i].DOEPINT = 0xFFFFFFFF; otgp->oe[i].DOEPINT = 0xFFFFFFFF;
} }