git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4589 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2012-08-20 07:52:45 +00:00
parent ecfdf939f1
commit f701d09fb0
1 changed files with 2 additions and 2 deletions

View File

@ -617,13 +617,13 @@ static void usb_lld_serve_interrupt(USBDriver *usbp) {
be triggered again.*/
otgp->GINTMSK &= ~GINTMSK_RXFLVLM;
/* Checks if the thread is waiting for an event.*/
chSysLockFromIsr();
if (usbp->thd_wait != NULL) {
/* The thread is made ready, it will be scheduled on ISR exit.*/
chSysLockFromIsr();
chThdResumeI(usbp->thd_wait);
usbp->thd_wait = NULL;
chSysUnlockFromIsr();
}
chSysUnlockFromIsr();
}
/* IN/OUT endpoints event handling.*/