mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-06-06 12:29:03 -04:00
Update to use new xQueueSendFromISR() and xSemaphoreGiveFromISR() function semantics.
This commit is contained in:
parent
8cf6a70c9e
commit
ac58b5b285
|
@ -197,7 +197,7 @@ unsigned portLONG ulNextWord;
|
|||
|
||||
void vEMAC_ISR( void )
|
||||
{
|
||||
portBASE_TYPE xSwitchRequired = pdFALSE;
|
||||
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
|
||||
unsigned portLONG ulTemp;
|
||||
|
||||
/* Clear the interrupt. */
|
||||
|
@ -207,13 +207,12 @@ unsigned portLONG ulTemp;
|
|||
/* Was it an Rx interrupt? */
|
||||
if( ulTemp & ETH_INT_RX )
|
||||
{
|
||||
xSwitchRequired = pdTRUE;
|
||||
xSemaphoreGiveFromISR( xMACInterruptSemaphore, pdFALSE );
|
||||
xSemaphoreGiveFromISR( xMACInterruptSemaphore, &xHigherPriorityTaskWoken );
|
||||
EthernetIntDisable( ETH_BASE, ETH_INT_RX );
|
||||
}
|
||||
|
||||
/* Switch to the uIP task. */
|
||||
portEND_SWITCHING_ISR( xSwitchRequired );
|
||||
portEND_SWITCHING_ISR( xHigherPriorityTaskWoken );
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
|
Loading…
Reference in a new issue