]> git.sur5r.net Git - freertos/commitdiff
Update to use new QueueSendFromISR() semantics.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 13 Apr 2008 16:28:17 +0000 (16:28 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 13 Apr 2008 16:28:17 +0000 (16:28 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@312 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/ARM7_LPC2368_Eclipse/RTOSDemo/main.c

index 921e0000f1afdf482567efb6f47c37e30f312c50..8855f99b00379b4c280badc04d94ddf6736e74ba 100644 (file)
@@ -176,6 +176,7 @@ void vApplicationTickHook( void )
 unsigned portBASE_TYPE uxColumn = 0;\r
 static xLCDMessage xMessage = { 0, "PASS" };\r
 static unsigned portLONG ulTicksSinceLastDisplay = 0;\r
+static portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;\r
 \r
        /* Called from every tick interrupt.  Have enough ticks passed to make it\r
        time to perform our health status check again? */\r
@@ -214,7 +215,8 @@ static unsigned portLONG ulTicksSinceLastDisplay = 0;
         xMessage.xColumn++;\r
 \r
                /* Send the message to the LCD gatekeeper for display. */\r
-               xQueueSendToBackFromISR( xLCDQueue, &xMessage, pdFALSE );\r
+               xHigherPriorityTaskWoken = pdFALSE;\r
+               xQueueSendToBackFromISR( xLCDQueue, &xMessage, &xHigherPriorityTaskWoken );\r
        }\r
 }\r
 /*-----------------------------------------------------------*/\r