From d746a7d03a9d508a16effb1c8cfeae303605c2a8 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Sat, 12 Apr 2008 23:41:42 +0000 Subject: [PATCH] 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 --- Demo/CORTEX_LM3Sxxxx_Eclipse/RTOSDemo/webserver/emac.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 ); } /*-----------------------------------------------------------*/ -- 2.39.5