diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-01-11 10:03:42 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-01-11 10:03:42 +0000 |
commit | a954fa43f4a1f24e9b67bad7c219a7846ae8b828 (patch) | |
tree | 515b09177c1599d41af258f2bd3d4029300cf33c /os | |
parent | 163b3562c0074af606b95d608ac4b56ccbab054c (diff) | |
download | ChibiOS-a954fa43f4a1f24e9b67bad7c219a7846ae8b828.tar.gz ChibiOS-a954fa43f4a1f24e9b67bad7c219a7846ae8b828.tar.bz2 ChibiOS-a954fa43f4a1f24e9b67bad7c219a7846ae8b828.zip |
Fixed bug #811.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10025 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/src/hal_usb.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/os/hal/src/hal_usb.c b/os/hal/src/hal_usb.c index 028e42152..813c2a597 100644 --- a/os/hal/src/hal_usb.c +++ b/os/hal/src/hal_usb.c @@ -417,14 +417,12 @@ void usbDisableEndpointsI(USBDriver *usbp) { #if USB_USE_WAIT == TRUE
/* Signaling the event to threads waiting on endpoints.*/
if (usbp->epc[i] != NULL) {
- osalSysLockFromISR();
if (usbp->epc[i]->in_state != NULL) {
osalThreadResumeI(&usbp->epc[i]->in_state->thread, MSG_RESET);
}
if (usbp->epc[i]->out_state != NULL) {
osalThreadResumeI(&usbp->epc[i]->out_state->thread, MSG_RESET);
}
- osalSysUnlockFromISR();
}
#endif
usbp->epc[i] = NULL;
|