]> git.sur5r.net Git - freertos/commitdiff
Replace xTaskIsTaskSuspended() call with eTaskGetState() call in IntQueue.c as the...
authorrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 11 Feb 2014 11:38:33 +0000 (11:38 +0000)
committerrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 11 Feb 2014 11:38:33 +0000 (11:38 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2201 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

FreeRTOS/Demo/Common/Minimal/IntQueue.c

index a0d5881040d1aeb658db776af4ad37bd9759823e..e9828ff53424b6fe89a78b814f47ee80a27b731c 100644 (file)
@@ -424,9 +424,9 @@ unsigned portBASE_TYPE uxValue, uxRxed;
        {\r
                if( xQueueReceive( xNormallyEmptyQueue, &uxRxed, intqONE_TICK_DELAY ) != errQUEUE_EMPTY )\r
                {\r
-                       /* We should only obtain a value when the high priority task is\r
+                       /* A value should only be obtained when the high priority task is\r
                        suspended. */\r
-                       if( xTaskIsTaskSuspended( xHighPriorityNormallyEmptyTask1 ) == pdFALSE )\r
+                       if( eTaskGetState( xHighPriorityNormallyEmptyTask1 ) != eSuspended )\r
                        {\r
                                prvQueueAccessLogError( __LINE__ );\r
                        }\r
@@ -621,9 +621,8 @@ unsigned portBASE_TYPE uxValue, uxTxed = 9999;
        {\r
                if( xQueueSend( xNormallyFullQueue, &uxTxed, intqONE_TICK_DELAY ) != errQUEUE_FULL )\r
                {\r
-                       /* We would only expect to succeed when the higher priority task\r
-                       is suspended. */\r
-                       if( xTaskIsTaskSuspended( xHighPriorityNormallyFullTask1 ) == pdFALSE )\r
+                       /* Should only succeed when the higher priority task is suspended */\r
+                       if( eTaskGetState( xHighPriorityNormallyFullTask1 ) != eSuspended )\r
                        {\r
                                prvQueueAccessLogError( __LINE__ );\r
                        }\r