From c6d8892b0da61dd3c43191039ba13838ac4f1820 Mon Sep 17 00:00:00 2001 From: Richard Barry Date: Tue, 11 Feb 2014 11:38:33 +0000 Subject: [PATCH] Replace xTaskIsTaskSuspended() call with eTaskGetState() call in IntQueue.c as the former is now a private function. --- FreeRTOS/Demo/Common/Minimal/IntQueue.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/FreeRTOS/Demo/Common/Minimal/IntQueue.c b/FreeRTOS/Demo/Common/Minimal/IntQueue.c index a0d588104..e9828ff53 100644 --- a/FreeRTOS/Demo/Common/Minimal/IntQueue.c +++ b/FreeRTOS/Demo/Common/Minimal/IntQueue.c @@ -424,9 +424,9 @@ unsigned portBASE_TYPE uxValue, uxRxed; { 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. */ - if( xTaskIsTaskSuspended( xHighPriorityNormallyEmptyTask1 ) == pdFALSE ) + if( eTaskGetState( xHighPriorityNormallyEmptyTask1 ) != eSuspended ) { prvQueueAccessLogError( __LINE__ ); } @@ -621,9 +621,8 @@ unsigned portBASE_TYPE uxValue, uxTxed = 9999; { if( xQueueSend( xNormallyFullQueue, &uxTxed, intqONE_TICK_DELAY ) != errQUEUE_FULL ) { - /* We would only expect to succeed when the higher priority task - is suspended. */ - if( xTaskIsTaskSuspended( xHighPriorityNormallyFullTask1 ) == pdFALSE ) + /* Should only succeed when the higher priority task is suspended */ + if( eTaskGetState( xHighPriorityNormallyFullTask1 ) != eSuspended ) { prvQueueAccessLogError( __LINE__ ); }