git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4589 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
ecfdf939f1
commit
f701d09fb0
|
@ -617,13 +617,13 @@ static void usb_lld_serve_interrupt(USBDriver *usbp) {
|
||||||
be triggered again.*/
|
be triggered again.*/
|
||||||
otgp->GINTMSK &= ~GINTMSK_RXFLVLM;
|
otgp->GINTMSK &= ~GINTMSK_RXFLVLM;
|
||||||
/* Checks if the thread is waiting for an event.*/
|
/* Checks if the thread is waiting for an event.*/
|
||||||
|
chSysLockFromIsr();
|
||||||
if (usbp->thd_wait != NULL) {
|
if (usbp->thd_wait != NULL) {
|
||||||
/* The thread is made ready, it will be scheduled on ISR exit.*/
|
/* The thread is made ready, it will be scheduled on ISR exit.*/
|
||||||
chSysLockFromIsr();
|
|
||||||
chThdResumeI(usbp->thd_wait);
|
chThdResumeI(usbp->thd_wait);
|
||||||
usbp->thd_wait = NULL;
|
usbp->thd_wait = NULL;
|
||||||
chSysUnlockFromIsr();
|
|
||||||
}
|
}
|
||||||
|
chSysUnlockFromIsr();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* IN/OUT endpoints event handling.*/
|
/* IN/OUT endpoints event handling.*/
|
||||||
|
|
Loading…
Reference in New Issue