]> git.sur5r.net Git - freertos/commitdiff
Update to use new xQueueSendFromISR() and xSemaphoreGiveFromISR() function semantics.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sat, 12 Apr 2008 23:41:42 +0000 (23:41 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sat, 12 Apr 2008 23:41:42 +0000 (23:41 +0000)
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

index 75142ee8de312fbc177be37b6a2680a89df65f71..fd7b8c6e7726e4431d4f64376e2a00b79c08cdc5 100644 (file)
@@ -197,7 +197,7 @@ unsigned portLONG ulNextWord;
 \r
 void vEMAC_ISR( void )\r
 {\r
-portBASE_TYPE xSwitchRequired = pdFALSE;\r
+portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;\r
 unsigned portLONG ulTemp;\r
 \r
        /* Clear the interrupt. */\r
@@ -207,13 +207,12 @@ unsigned portLONG ulTemp;
        /* Was it an Rx interrupt? */\r
        if( ulTemp & ETH_INT_RX )\r
        {\r
-               xSwitchRequired = pdTRUE;\r
-               xSemaphoreGiveFromISR( xMACInterruptSemaphore, pdFALSE );\r
+               xSemaphoreGiveFromISR( xMACInterruptSemaphore, &xHigherPriorityTaskWoken );\r
                EthernetIntDisable( ETH_BASE, ETH_INT_RX );\r
        }\r
                \r
     /* Switch to the uIP task. */\r
-       portEND_SWITCHING_ISR( xSwitchRequired );\r
+       portEND_SWITCHING_ISR( xHigherPriorityTaskWoken );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r