Change UBaseType_t to BaseType_t for a boolean variable (#1072)

This commit is contained in:
Rahul Kar 2024-05-24 12:53:54 +05:30 committed by GitHub
parent 27c4feff66
commit ef22228bda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

10
tasks.c
View file

@ -3895,9 +3895,9 @@ void vTaskSuspendAll( void )
static TickType_t prvGetExpectedIdleTime( void ) static TickType_t prvGetExpectedIdleTime( void )
{ {
TickType_t xReturn; TickType_t xReturn;
UBaseType_t uxHigherPriorityReadyTasks = pdFALSE; BaseType_t xHigherPriorityReadyTasks = pdFALSE;
/* uxHigherPriorityReadyTasks takes care of the case where /* xHigherPriorityReadyTasks takes care of the case where
* configUSE_PREEMPTION is 0, so there may be tasks above the idle priority * configUSE_PREEMPTION is 0, so there may be tasks above the idle priority
* task that are in the Ready state, even though the idle task is * task that are in the Ready state, even though the idle task is
* running. */ * running. */
@ -3905,7 +3905,7 @@ void vTaskSuspendAll( void )
{ {
if( uxTopReadyPriority > tskIDLE_PRIORITY ) if( uxTopReadyPriority > tskIDLE_PRIORITY )
{ {
uxHigherPriorityReadyTasks = pdTRUE; xHigherPriorityReadyTasks = pdTRUE;
} }
} }
#else #else
@ -3919,7 +3919,7 @@ void vTaskSuspendAll( void )
* care of the case where the co-operative scheduler is in use. */ * care of the case where the co-operative scheduler is in use. */
if( uxTopReadyPriority > uxLeastSignificantBit ) if( uxTopReadyPriority > uxLeastSignificantBit )
{ {
uxHigherPriorityReadyTasks = pdTRUE; xHigherPriorityReadyTasks = pdTRUE;
} }
} }
#endif /* if ( configUSE_PORT_OPTIMISED_TASK_SELECTION == 0 ) */ #endif /* if ( configUSE_PORT_OPTIMISED_TASK_SELECTION == 0 ) */
@ -3935,7 +3935,7 @@ void vTaskSuspendAll( void )
* processed. */ * processed. */
xReturn = 0; xReturn = 0;
} }
else if( uxHigherPriorityReadyTasks != pdFALSE ) else if( xHigherPriorityReadyTasks != pdFALSE )
{ {
/* There are tasks in the Ready state that have a priority above the /* There are tasks in the Ready state that have a priority above the
* idle priority. This path can only be reached if * idle priority. This path can only be reached if