291291 * responsibility of whichever module is using the value to ensure it gets set back
292292 * to its original value when it is released. */
293293#if ( configTICK_TYPE_WIDTH_IN_BITS == TICK_TYPE_WIDTH_16_BITS )
294- #define taskEVENT_LIST_ITEM_VALUE_IN_USE ( ( uint16_t ) 0x8000 )
294+ #define taskEVENT_LIST_ITEM_VALUE_IN_USE ( ( uint16_t ) 0x8000U )
295295#elif ( configTICK_TYPE_WIDTH_IN_BITS == TICK_TYPE_WIDTH_32_BITS )
296- #define taskEVENT_LIST_ITEM_VALUE_IN_USE ( ( uint32_t ) 0x80000000 )
296+ #define taskEVENT_LIST_ITEM_VALUE_IN_USE ( ( uint32_t ) 0x80000000U )
297297#elif ( configTICK_TYPE_WIDTH_IN_BITS == TICK_TYPE_WIDTH_64_BITS )
298- #define taskEVENT_LIST_ITEM_VALUE_IN_USE ( ( uint64_t ) 0x8000000000000000 )
298+ #define taskEVENT_LIST_ITEM_VALUE_IN_USE ( ( uint64_t ) 0x8000000000000000U )
299299#endif
300300
301301/* Indicates that the task is not actively running on any core. */
314314#endif
315315
316316/* Indicates that the task is an Idle task. */
317- #define taskATTRIBUTE_IS_IDLE ( UBaseType_t ) ( 1UL << 0UL )
317+ #define taskATTRIBUTE_IS_IDLE ( UBaseType_t ) ( 1U << 0U )
318318
319319#if ( ( configNUMBER_OF_CORES > 1 ) && ( portCRITICAL_NESTING_IN_TCB == 1 ) )
320320 #define portGET_CRITICAL_NESTING_COUNT () ( pxCurrentTCBs[ portGET_CORE_ID() ]->uxCriticalNesting )
@@ -1835,7 +1835,7 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
18351835 pxTopOfStack = ( StackType_t * ) ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack ) & ( ~( ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) ) );
18361836
18371837 /* Check the alignment of the calculated top of stack is correct. */
1838- configASSERT ( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) );
1838+ configASSERT ( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0U ) );
18391839
18401840 #if ( configRECORD_STACK_HIGH_ADDRESS == 1 )
18411841 {
@@ -1851,7 +1851,7 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
18511851 pxTopOfStack = ( StackType_t * ) ( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack ) + portBYTE_ALIGNMENT_MASK ) & ( ~( ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) ) );
18521852
18531853 /* Check the alignment of the calculated top of stack is correct. */
1854- configASSERT ( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) );
1854+ configASSERT ( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0U ) );
18551855
18561856 /* The other extreme of the stack space is required if stack checking is
18571857 * performed. */
@@ -2891,7 +2891,7 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
28912891
28922892 /* Only reset the event list item value if the value is not
28932893 * being used for anything else. */
2894- if ( ( listGET_LIST_ITEM_VALUE ( & ( pxTCB -> xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == ( ( TickType_t ) 0UL ) )
2894+ if ( ( listGET_LIST_ITEM_VALUE ( & ( pxTCB -> xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == ( ( TickType_t ) 0U ) )
28952895 {
28962896 listSET_LIST_ITEM_VALUE ( & ( pxTCB -> xEventListItem ), ( ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) uxNewPriority ) );
28972897 }
@@ -6596,7 +6596,7 @@ static void prvResetNextTaskUnblockTime( void )
65966596 /* Adjust the mutex holder state to account for its new
65976597 * priority. Only reset the event list item value if the value is
65986598 * not being used for anything else. */
6599- if ( ( listGET_LIST_ITEM_VALUE ( & ( pxMutexHolderTCB -> xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == ( ( TickType_t ) 0UL ) )
6599+ if ( ( listGET_LIST_ITEM_VALUE ( & ( pxMutexHolderTCB -> xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == ( ( TickType_t ) 0U ) )
66006600 {
66016601 listSET_LIST_ITEM_VALUE ( & ( pxMutexHolderTCB -> xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxCurrentTCB -> uxPriority );
66026602 }
@@ -6825,7 +6825,7 @@ static void prvResetNextTaskUnblockTime( void )
68256825
68266826 /* Only reset the event list item value if the value is not
68276827 * being used for anything else. */
6828- if ( ( listGET_LIST_ITEM_VALUE ( & ( pxTCB -> xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == ( ( TickType_t ) 0UL ) )
6828+ if ( ( listGET_LIST_ITEM_VALUE ( & ( pxTCB -> xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == ( ( TickType_t ) 0U ) )
68296829 {
68306830 listSET_LIST_ITEM_VALUE ( & ( pxTCB -> xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) uxPriorityToUse );
68316831 }
@@ -7440,10 +7440,10 @@ static void prvResetNextTaskUnblockTime( void )
74407440 uxArraySize = uxTaskGetSystemState ( pxTaskStatusArray , uxArraySize , & ulTotalTime );
74417441
74427442 /* For percentage calculations. */
7443- ulTotalTime /= ( ( configRUN_TIME_COUNTER_TYPE ) 100UL );
7443+ ulTotalTime /= ( ( configRUN_TIME_COUNTER_TYPE ) 100U );
74447444
74457445 /* Avoid divide by zero errors. */
7446- if ( ulTotalTime > 0UL )
7446+ if ( ulTotalTime > 0U )
74477447 {
74487448 /* Create a human readable table from the binary data. */
74497449 for ( x = 0 ; x < uxArraySize ; x ++ )
@@ -7469,7 +7469,7 @@ static void prvResetNextTaskUnblockTime( void )
74697469 * character. */
74707470 if ( uxConsumedBufferLength < ( uxBufferLength - 1U ) )
74717471 {
7472- if ( ulStatsAsPercentage > 0UL )
7472+ if ( ulStatsAsPercentage > 0U )
74737473 {
74747474 #ifdef portLU_PRINTF_SPECIFIER_REQUIRED
74757475 {
@@ -7633,7 +7633,7 @@ TickType_t uxTaskResetEventItemValue( void )
76337633 taskENTER_CRITICAL ();
76347634 {
76357635 /* Only block if the notification count is not already non-zero. */
7636- if ( pxCurrentTCB -> ulNotifiedValue [ uxIndexToWaitOn ] == 0UL )
7636+ if ( pxCurrentTCB -> ulNotifiedValue [ uxIndexToWaitOn ] == 0U )
76377637 {
76387638 /* Mark this task as waiting for a notification. */
76397639 pxCurrentTCB -> ucNotifyState [ uxIndexToWaitOn ] = taskWAITING_NOTIFICATION ;
@@ -7684,11 +7684,11 @@ TickType_t uxTaskResetEventItemValue( void )
76847684 traceTASK_NOTIFY_TAKE ( uxIndexToWaitOn );
76857685 ulReturn = pxCurrentTCB -> ulNotifiedValue [ uxIndexToWaitOn ];
76867686
7687- if ( ulReturn != 0UL )
7687+ if ( ulReturn != 0U )
76887688 {
76897689 if ( xClearCountOnExit != pdFALSE )
76907690 {
7691- pxCurrentTCB -> ulNotifiedValue [ uxIndexToWaitOn ] = ( uint32_t ) 0UL ;
7691+ pxCurrentTCB -> ulNotifiedValue [ uxIndexToWaitOn ] = ( uint32_t ) 0U ;
76927692 }
76937693 else
76947694 {
0 commit comments