|
92 | 92 | /** |
93 | 93 | * @brief Checks whether an external index is valid or not. |
94 | 94 | */ |
95 | | - #define IS_EXTERNAL_INDEX_VALID( lIndex ) \ |
96 | | - ( ( ( lIndex ) >= INDEX_OFFSET ) && \ |
97 | | - ( ( lIndex ) < ( configPROTECTED_KERNEL_OBJECT_POOL_SIZE + INDEX_OFFSET ) ) ) |
| 95 | + #define IS_EXTERNAL_INDEX_VALID( lIndex ) \ |
| 96 | + ( ( ( ( lIndex ) >= INDEX_OFFSET ) && \ |
| 97 | + ( ( lIndex ) < ( configPROTECTED_KERNEL_OBJECT_POOL_SIZE + INDEX_OFFSET ) ) ) ? pdTRUE : pdFALSE ) |
98 | 98 |
|
99 | 99 | /** |
100 | 100 | * @brief Checks whether an internal index is valid or not. |
101 | 101 | */ |
102 | | - #define IS_INTERNAL_INDEX_VALID( lIndex ) \ |
103 | | - ( ( ( lIndex ) >= 0 ) && \ |
104 | | - ( ( lIndex ) < ( configPROTECTED_KERNEL_OBJECT_POOL_SIZE ) ) ) |
| 102 | + #define IS_INTERNAL_INDEX_VALID( lIndex ) \ |
| 103 | + ( ( ( ( lIndex ) >= 0 ) && \ |
| 104 | + ( ( lIndex ) < ( configPROTECTED_KERNEL_OBJECT_POOL_SIZE ) ) ) ? pdTRUE : pdFALSE ) |
105 | 105 |
|
106 | 106 | /** |
107 | 107 | * @brief Converts an internal index into external. |
|
2197 | 2197 | if( ( !( ( pvItemToQueue == NULL ) && ( uxQueueItemSize != ( UBaseType_t ) 0U ) ) ) && |
2198 | 2198 | ( !( ( xCopyPosition == queueOVERWRITE ) && ( uxQueueLength != ( UBaseType_t ) 1U ) ) ) |
2199 | 2199 | #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) |
2200 | | - && ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ) |
| 2200 | + && ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0U ) ) ) |
2201 | 2201 | #endif |
2202 | 2202 | ) |
2203 | 2203 | { |
|
2312 | 2312 |
|
2313 | 2313 | if( ( !( ( ( pvBuffer ) == NULL ) && ( uxQueueItemSize != ( UBaseType_t ) 0U ) ) ) |
2314 | 2314 | #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) |
2315 | | - && ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ) |
| 2315 | + && ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0U ) ) ) |
2316 | 2316 | #endif |
2317 | 2317 | ) |
2318 | 2318 | { |
|
2364 | 2364 |
|
2365 | 2365 | if( ( !( ( ( pvBuffer ) == NULL ) && ( uxQueueItemSize != ( UBaseType_t ) 0U ) ) ) |
2366 | 2366 | #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) |
2367 | | - && ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ) |
| 2367 | + && ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0U ) ) ) |
2368 | 2368 | #endif |
2369 | 2369 | ) |
2370 | 2370 | { |
|
2411 | 2411 | { |
2412 | 2412 | uxQueueItemSize = uxQueueGetQueueItemSize( xInternalQueueHandle ); |
2413 | 2413 |
|
2414 | | - if( ( uxQueueItemSize == 0 ) |
| 2414 | + if( ( uxQueueItemSize == 0U ) |
2415 | 2415 | #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) |
2416 | | - && ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ) |
| 2416 | + && ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0U ) ) ) |
2417 | 2417 | #endif |
2418 | 2418 | ) |
2419 | 2419 | { |
|
3906 | 3906 |
|
3907 | 3907 | if( xAreParamsReadable == pdTRUE ) |
3908 | 3908 | { |
3909 | | - if( ( ( pxParams->uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0 ) && |
3910 | | - ( pxParams->uxBitsToWaitFor != 0 ) |
| 3909 | + if( ( ( pxParams->uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0U ) && |
| 3910 | + ( pxParams->uxBitsToWaitFor != 0U ) |
3911 | 3911 | #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) |
3912 | | - && ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( pxParams->xTicksToWait != 0 ) ) ) |
| 3912 | + && ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( pxParams->xTicksToWait != 0U ) ) ) |
3913 | 3913 | #endif |
3914 | 3914 | ) |
3915 | 3915 | { |
|
3951 | 3951 | int32_t lIndex; |
3952 | 3952 | BaseType_t xCallingTaskIsAuthorizedToAccessEventGroup = pdFALSE; |
3953 | 3953 |
|
3954 | | - if( ( uxBitsToClear & eventEVENT_BITS_CONTROL_BYTES ) == 0 ) |
| 3954 | + if( ( uxBitsToClear & eventEVENT_BITS_CONTROL_BYTES ) == 0U ) |
3955 | 3955 | { |
3956 | 3956 | lIndex = ( int32_t ) xEventGroup; |
3957 | 3957 |
|
|
3986 | 3986 | int32_t lIndex; |
3987 | 3987 | BaseType_t xCallingTaskIsAuthorizedToAccessEventGroup = pdFALSE; |
3988 | 3988 |
|
3989 | | - if( ( uxBitsToSet & eventEVENT_BITS_CONTROL_BYTES ) == 0 ) |
| 3989 | + if( ( uxBitsToSet & eventEVENT_BITS_CONTROL_BYTES ) == 0U ) |
3990 | 3990 | { |
3991 | 3991 | lIndex = ( int32_t ) xEventGroup; |
3992 | 3992 |
|
|
4025 | 4025 | int32_t lIndex; |
4026 | 4026 | BaseType_t xCallingTaskIsAuthorizedToAccessEventGroup = pdFALSE; |
4027 | 4027 |
|
4028 | | - if( ( ( uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0 ) && |
4029 | | - ( uxBitsToWaitFor != 0 ) |
| 4028 | + if( ( ( uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0U ) && |
| 4029 | + ( uxBitsToWaitFor != 0U ) |
4030 | 4030 | #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) |
4031 | | - && ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ) |
| 4031 | + && ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0U ) ) ) |
4032 | 4032 | #endif |
4033 | 4033 | ) |
4034 | 4034 | { |
|
0 commit comments