|
255 | 255 | pxTemp = pxDelayedTaskList; \ |
256 | 256 | pxDelayedTaskList = pxOverflowDelayedTaskList; \ |
257 | 257 | pxOverflowDelayedTaskList = pxTemp; \ |
258 | | - xNumOfOverflows += ( BaseType_t ) 1; \ |
| 258 | + xNumOfOverflows = ( BaseType_t ) ( xNumOfOverflows + 1 ); \ |
259 | 259 | prvResetNextTaskUnblockTime(); \ |
260 | 260 | } while( 0 ) |
261 | 261 |
|
|
291 | 291 | * responsibility of whichever module is using the value to ensure it gets set back |
292 | 292 | * to its original value when it is released. */ |
293 | 293 | #if ( configTICK_TYPE_WIDTH_IN_BITS == TICK_TYPE_WIDTH_16_BITS ) |
294 | | - #define taskEVENT_LIST_ITEM_VALUE_IN_USE ( ( uint16_t ) 0x8000U ) |
| 294 | + #define taskEVENT_LIST_ITEM_VALUE_IN_USE ( ( uint16_t ) 0x8000 ) |
295 | 295 | #elif ( configTICK_TYPE_WIDTH_IN_BITS == TICK_TYPE_WIDTH_32_BITS ) |
296 | | - #define taskEVENT_LIST_ITEM_VALUE_IN_USE ( ( uint32_t ) 0x80000000UL ) |
| 296 | + #define taskEVENT_LIST_ITEM_VALUE_IN_USE ( ( uint32_t ) 0x80000000 ) |
297 | 297 | #elif ( configTICK_TYPE_WIDTH_IN_BITS == TICK_TYPE_WIDTH_64_BITS ) |
298 | | - #define taskEVENT_LIST_ITEM_VALUE_IN_USE ( ( uint64_t ) 0x8000000000000000ULL ) |
| 298 | + #define taskEVENT_LIST_ITEM_VALUE_IN_USE ( ( uint64_t ) 0x8000000000000000 ) |
299 | 299 | #endif |
300 | 300 |
|
301 | 301 | /* Indicates that the task is not actively running on any core. */ |
@@ -903,7 +903,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) PRIVILEGED_FUNCTION; |
903 | 903 | /* System idle tasks are being assigned a priority of tskIDLE_PRIORITY - 1 here. */ |
904 | 904 | if( ( pxCurrentTCBs[ xCoreID ]->uxTaskAttributes & taskATTRIBUTE_IS_IDLE ) != 0U ) |
905 | 905 | { |
906 | | - xCurrentCoreTaskPriority = xCurrentCoreTaskPriority - 1; |
| 906 | + xCurrentCoreTaskPriority = ( BaseType_t ) ( xCurrentCoreTaskPriority - 1 ); |
907 | 907 | } |
908 | 908 |
|
909 | 909 | if( ( taskTASK_IS_RUNNING( pxCurrentTCBs[ xCoreID ] ) != pdFALSE ) && ( xYieldPendings[ xCoreID ] == pdFALSE ) ) |
@@ -2022,7 +2022,7 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode, |
2022 | 2022 | * updated. */ |
2023 | 2023 | taskENTER_CRITICAL(); |
2024 | 2024 | { |
2025 | | - uxCurrentNumberOfTasks += ( UBaseType_t ) 1U; |
| 2025 | + uxCurrentNumberOfTasks = ( UBaseType_t ) ( uxCurrentNumberOfTasks + 1U ); |
2026 | 2026 |
|
2027 | 2027 | if( pxCurrentTCB == NULL ) |
2028 | 2028 | { |
@@ -3594,7 +3594,7 @@ static BaseType_t prvCreateIdleTasks( void ) |
3594 | 3594 | } |
3595 | 3595 | else |
3596 | 3596 | { |
3597 | | - vApplicationGetPassiveIdleTaskMemory( &pxIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &uxIdleTaskStackSize, xCoreID - 1 ); |
| 3597 | + vApplicationGetPassiveIdleTaskMemory( &pxIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &uxIdleTaskStackSize, ( BaseType_t ) ( xCoreID - 1 ) ); |
3598 | 3598 | } |
3599 | 3599 | } |
3600 | 3600 | #endif /* if ( configNUMBER_OF_CORES == 1 ) */ |
@@ -3816,7 +3816,7 @@ void vTaskSuspendAll( void ) |
3816 | 3816 |
|
3817 | 3817 | /* The scheduler is suspended if uxSchedulerSuspended is non-zero. An increment |
3818 | 3818 | * is used to allow calls to vTaskSuspendAll() to nest. */ |
3819 | | - uxSchedulerSuspended += ( UBaseType_t ) 1U; |
| 3819 | + uxSchedulerSuspended = ( UBaseType_t ) ( uxSchedulerSuspended + 1U ); |
3820 | 3820 |
|
3821 | 3821 | /* Enforces ordering for ports and optimised compilers that may otherwise place |
3822 | 3822 | * the above increment elsewhere. */ |
@@ -3969,7 +3969,7 @@ BaseType_t xTaskResumeAll( void ) |
3969 | 3969 | * previous call to vTaskSuspendAll(). */ |
3970 | 3970 | configASSERT( uxSchedulerSuspended != 0U ); |
3971 | 3971 |
|
3972 | | - uxSchedulerSuspended -= ( UBaseType_t ) 1U; |
| 3972 | + uxSchedulerSuspended = ( UBaseType_t ) ( uxSchedulerSuspended - 1U ); |
3973 | 3973 | portRELEASE_TASK_LOCK(); |
3974 | 3974 |
|
3975 | 3975 | if( uxSchedulerSuspended == ( UBaseType_t ) 0U ) |
|
0 commit comments