taskEXIT_CRITICAL();\r
\r
return pxReturn;\r
- }\r
+ } /*lint !e818 xSemaphore cannot be a pointer to const because it is a typedef. */\r
\r
#endif\r
/*-----------------------------------------------------------*/\r
{\r
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )\r
{\r
- /* The task waiting has a higher priority so \r
+ /* The task waiting has a higher priority so\r
record that a context switch is required. */\r
if( pxHigherPriorityTaskWoken != NULL )\r
{\r
mtCOVERAGE_TEST_MARKER();\r
}\r
}\r
- #endif\r
+ #endif /* configUSE_MUTEXES */\r
\r
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )\r
{\r
\r
static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer )\r
{\r
- if( pxQueue->uxItemSize != 0 )\r
+ if( pxQueue->uxItemSize != ( UBaseType_t ) 0 )\r
{\r
pxQueue->u.pcReadFrom += pxQueue->uxItemSize;\r
if( pxQueue->u.pcReadFrom >= pxQueue->pcTail ) /*lint !e946 MISRA exception justified as use of the relational operator is the cleanest solutions. */\r
/* A port optimised version is provided, call it only if the TCB being reset\r
is being referenced from a ready list. If it is referenced from a delayed\r
or suspended list then it won't be in a ready list. */\r
- #define taskRESET_READY_PRIORITY( uxPriority ) \\r
- { \\r
- if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ ( uxPriority ) ] ) ) == 0 ) \\r
- { \\r
- portRESET_READY_PRIORITY( ( uxPriority ), ( uxTopReadyPriority ) ); \\r
- } \\r
+ #define taskRESET_READY_PRIORITY( uxPriority ) \\r
+ { \\r
+ if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ ( uxPriority ) ] ) ) == ( UBaseType_t ) 0 ) \\r
+ { \\r
+ portRESET_READY_PRIORITY( ( uxPriority ), ( uxTopReadyPriority ) ); \\r
+ } \\r
}\r
\r
#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */\r
}\r
\r
return eReturn;\r
- }\r
+ } /*lint !e818 xTask cannot be a pointer to const because it is a typedef. */\r
\r
#endif /* INCLUDE_eTaskGetState */\r
/*-----------------------------------------------------------*/\r
\r
#if ( INCLUDE_pcTaskGetTaskName == 1 )\r
\r
- char *pcTaskGetTaskName( TaskHandle_t xTaskToQuery )\r
+ char *pcTaskGetTaskName( TaskHandle_t xTaskToQuery ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */\r
{\r
TCB_t *pxTCB;\r
\r
{\r
uint32_t ulCount = 0U;\r
\r
- while( *pucStackByte == tskSTACK_FILL_BYTE )\r
+ while( *pucStackByte == ( uint8_t ) tskSTACK_FILL_BYTE )\r
{\r
pucStackByte -= portSTACK_GROWTH;\r
ulCount++;\r
}\r
\r
- ulCount /= ( uint32_t ) sizeof( StackType_t );\r
+ ulCount /= ( uint32_t ) sizeof( StackType_t ); /*lint !e961 Casting is not redundant on smaller architectures. */\r
\r
return ( uint16_t ) ulCount;\r
}\r
if( pxTCB->uxPriority != pxTCB->uxBasePriority )\r
{\r
/* Only disinherit if no other mutexes are held. */\r
- if( pxTCB->uxMutexesHeld == 0 )\r
+ if( pxTCB->uxMutexesHeld == ( UBaseType_t ) 0 )\r
{\r
/* The holding task must be the running task to be able to give\r
the mutex back. Remove the holding task from the ready list. */\r
}\r
/*-----------------------------------------------------------*/\r
\r
-void *pvTaskIncrementMutexHeldCount( void )\r
-{\r
- #if ( configUSE_MUTEXES == 1 )\r
+#if ( configUSE_MUTEXES == 1 )\r
+\r
+ void *pvTaskIncrementMutexHeldCount( void )\r
{\r
/* If xSemaphoreCreateMutex() is called before any tasks have been created\r
then pxCurrentTCB will be NULL. */\r
\r
return pxCurrentTCB;\r
}\r
- #endif\r
-}\r
+\r
+#endif /* configUSE_MUTEXES */\r
+\r
/*-----------------------------------------------------------*/\r
\r
#ifdef FREERTOS_MODULE_TEST\r
{\r
/* Negative commands are pended function calls rather than timer\r
commands. */\r
- if( xMessage.xMessageID < 0 )\r
+ if( xMessage.xMessageID < ( BaseType_t ) 0 )\r
{\r
const CallbackParameters_t * const pxCallback = &( xMessage.u.xCallbackParameters );\r
\r
xMessage.u.xCallbackParameters.ulParameter2 = ulParameter2;\r
\r
xReturn = xQueueSendFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken );\r
- \r
+\r
tracePEND_FUNC_CALL_FROM_ISR( xFunctionToPend, pvParameter1, ulParameter2, xReturn );\r
\r
return xReturn;\r
xReturn = xQueueSendToBack( xTimerQueue, &xMessage, xTicksToWait );\r
\r
tracePEND_FUNC_CALL( xFunctionToPend, pvParameter1, ulParameter2, xReturn );\r
- \r
+\r
return xReturn;\r
}\r
\r