Replace xTaskIsTaskSuspended() call with eTaskGetState() call in IntQueue.c as the former is now a private function.

This commit is contained in:
Richard Barry 2014-02-11 11:38:33 +00:00
parent 4f01401c00
commit c6d8892b0d

View file

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