From: richardbarry Date: Sat, 12 Apr 2008 23:41:42 +0000 (+0000) Subject: Update to use new xQueueSendFromISR() and xSemaphoreGiveFromISR() function semantics. X-Git-Tag: V5.0.0~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d746a7d03a9d508a16effb1c8cfeae303605c2a8;p=freertos Update to use new xQueueSendFromISR() and xSemaphoreGiveFromISR() function semantics. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@310 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Demo/CORTEX_LM3Sxxxx_Eclipse/RTOSDemo/webserver/emac.c b/Demo/CORTEX_LM3Sxxxx_Eclipse/RTOSDemo/webserver/emac.c index 75142ee8d..fd7b8c6e7 100644 --- a/Demo/CORTEX_LM3Sxxxx_Eclipse/RTOSDemo/webserver/emac.c +++ b/Demo/CORTEX_LM3Sxxxx_Eclipse/RTOSDemo/webserver/emac.c @@ -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 ); } /*-----------------------------------------------------------*/