mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-07 13:45:00 -05:00
Fixes for violations of MISRA rule 10.4
This commit is contained in:
parent
ba1e2dad3c
commit
af1a09b340
1 changed files with 13 additions and 13 deletions
|
|
@ -2197,7 +2197,7 @@
|
||||||
if( ( !( ( pvItemToQueue == NULL ) && ( uxQueueItemSize != ( UBaseType_t ) 0U ) ) ) &&
|
if( ( !( ( pvItemToQueue == NULL ) && ( uxQueueItemSize != ( UBaseType_t ) 0U ) ) ) &&
|
||||||
( !( ( xCopyPosition == queueOVERWRITE ) && ( uxQueueLength != ( UBaseType_t ) 1U ) ) )
|
( !( ( xCopyPosition == queueOVERWRITE ) && ( uxQueueLength != ( UBaseType_t ) 1U ) ) )
|
||||||
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
|
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
|
||||||
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) )
|
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0U ) ) )
|
||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
@ -2312,7 +2312,7 @@
|
||||||
|
|
||||||
if( ( !( ( ( pvBuffer ) == NULL ) && ( uxQueueItemSize != ( UBaseType_t ) 0U ) ) )
|
if( ( !( ( ( pvBuffer ) == NULL ) && ( uxQueueItemSize != ( UBaseType_t ) 0U ) ) )
|
||||||
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
|
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
|
||||||
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) )
|
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0U ) ) )
|
||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
@ -2364,7 +2364,7 @@
|
||||||
|
|
||||||
if( ( !( ( ( pvBuffer ) == NULL ) && ( uxQueueItemSize != ( UBaseType_t ) 0U ) ) )
|
if( ( !( ( ( pvBuffer ) == NULL ) && ( uxQueueItemSize != ( UBaseType_t ) 0U ) ) )
|
||||||
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
|
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
|
||||||
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) )
|
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0U ) ) )
|
||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
@ -2411,9 +2411,9 @@
|
||||||
{
|
{
|
||||||
uxQueueItemSize = uxQueueGetQueueItemSize( xInternalQueueHandle );
|
uxQueueItemSize = uxQueueGetQueueItemSize( xInternalQueueHandle );
|
||||||
|
|
||||||
if( ( uxQueueItemSize == 0 )
|
if( ( uxQueueItemSize == 0U )
|
||||||
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
|
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
|
||||||
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) )
|
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0U ) ) )
|
||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
@ -3906,10 +3906,10 @@
|
||||||
|
|
||||||
if( xAreParamsReadable == pdTRUE )
|
if( xAreParamsReadable == pdTRUE )
|
||||||
{
|
{
|
||||||
if( ( ( pxParams->uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0 ) &&
|
if( ( ( pxParams->uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0U ) &&
|
||||||
( pxParams->uxBitsToWaitFor != 0 )
|
( pxParams->uxBitsToWaitFor != 0U )
|
||||||
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
|
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
|
||||||
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( pxParams->xTicksToWait != 0 ) ) )
|
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( pxParams->xTicksToWait != 0U ) ) )
|
||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
@ -3951,7 +3951,7 @@
|
||||||
int32_t lIndex;
|
int32_t lIndex;
|
||||||
BaseType_t xCallingTaskIsAuthorizedToAccessEventGroup = pdFALSE;
|
BaseType_t xCallingTaskIsAuthorizedToAccessEventGroup = pdFALSE;
|
||||||
|
|
||||||
if( ( uxBitsToClear & eventEVENT_BITS_CONTROL_BYTES ) == 0 )
|
if( ( uxBitsToClear & eventEVENT_BITS_CONTROL_BYTES ) == 0U )
|
||||||
{
|
{
|
||||||
lIndex = ( int32_t ) xEventGroup;
|
lIndex = ( int32_t ) xEventGroup;
|
||||||
|
|
||||||
|
|
@ -3986,7 +3986,7 @@
|
||||||
int32_t lIndex;
|
int32_t lIndex;
|
||||||
BaseType_t xCallingTaskIsAuthorizedToAccessEventGroup = pdFALSE;
|
BaseType_t xCallingTaskIsAuthorizedToAccessEventGroup = pdFALSE;
|
||||||
|
|
||||||
if( ( uxBitsToSet & eventEVENT_BITS_CONTROL_BYTES ) == 0 )
|
if( ( uxBitsToSet & eventEVENT_BITS_CONTROL_BYTES ) == 0U )
|
||||||
{
|
{
|
||||||
lIndex = ( int32_t ) xEventGroup;
|
lIndex = ( int32_t ) xEventGroup;
|
||||||
|
|
||||||
|
|
@ -4025,10 +4025,10 @@
|
||||||
int32_t lIndex;
|
int32_t lIndex;
|
||||||
BaseType_t xCallingTaskIsAuthorizedToAccessEventGroup = pdFALSE;
|
BaseType_t xCallingTaskIsAuthorizedToAccessEventGroup = pdFALSE;
|
||||||
|
|
||||||
if( ( ( uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0 ) &&
|
if( ( ( uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0U ) &&
|
||||||
( uxBitsToWaitFor != 0 )
|
( uxBitsToWaitFor != 0U )
|
||||||
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
|
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
|
||||||
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) )
|
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0U ) ) )
|
||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue