From b64f63efd1feb40e0ee2d41e041dacc305a7ad82 Mon Sep 17 00:00:00 2001 From: rtel 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. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2201 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- 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__ ); } -- 2.39.5