Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/flipperdevices/libusb_stm32.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry <dmitrystu@gmail.com>2017-10-25 01:37:39 +0300
committerDmitry <dmitrystu@gmail.com>2017-10-25 01:37:39 +0300
commite029812276c17bfb2b9904b3b6e351d2151803cb (patch)
treeab5508241dce54e1b932c31332952585f83c103f
parent7e5621a9bc1e4333b835365a2c509e19403b6b7e (diff)
Fixed hangs on USB bus reset event (reenumeration) for OTG_FS driver
-rw-r--r--src/usb_32v2.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/usb_32v2.c b/src/usb_32v2.c
index f9e25d7..57fbe81 100644
--- a/src/usb_32v2.c
+++ b/src/usb_32v2.c
@@ -324,7 +324,6 @@ void ep_deconfig(uint8_t ep) {
/* disabling endpoint */
if ((epi->DIEPCTL & USB_OTG_DIEPCTL_EPENA) && (ep != 0)) {
epi->DIEPCTL = USB_OTG_DIEPCTL_EPDIS;
- _WBS(epi->DIEPINT, USB_OTG_DIEPINT_EPDISD);
}
/* clean EP interrupts */
epi->DIEPINT = 0xFF;
@@ -336,7 +335,6 @@ void ep_deconfig(uint8_t ep) {
_BCL(epo->DOEPCTL, USB_OTG_DOEPCTL_USBAEP);
if ((epo->DOEPCTL & USB_OTG_DOEPCTL_EPENA) && (ep != 0)) {
epo->DOEPCTL = USB_OTG_DOEPCTL_EPDIS;
- _WBS(epo->DOEPINT, USB_OTG_DOEPINT_EPDISD);
}
epo->DOEPINT = 0xFF;
}