Skip to content

Commit

Permalink
Match existing data type for xCoreID
Browse files Browse the repository at this point in the history
  • Loading branch information
felixvanoost committed Dec 12, 2024
1 parent d77a370 commit bc1c607
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) PRIVILEGED_FUNCTION;
{
UBaseType_t uxPrevCriticalNesting;
const TCB_t * pxThisTCB;
const UBaseType_t xCoreID = portGET_CORE_ID();
const BaseType_t xCoreID = ( BaseType_t ) portGET_CORE_ID();

/* This must only be called from within a task. */
portASSERT_IF_IN_ISR();
Expand Down Expand Up @@ -3868,7 +3868,7 @@ void vTaskSuspendAll( void )
#else /* #if ( configNUMBER_OF_CORES == 1 ) */
{
UBaseType_t ulState;
const UBaseType_t xCoreID = portGET_CORE_ID();
const BaseType_t xCoreID = ( BaseType_t ) portGET_CORE_ID();

/* This must only be called from within a task. */
portASSERT_IF_IN_ISR();
Expand Down Expand Up @@ -4006,8 +4006,7 @@ BaseType_t xTaskResumeAll( void )
* tasks from this list into their appropriate ready list. */
taskENTER_CRITICAL();
{
BaseType_t xCoreID;
xCoreID = ( BaseType_t ) portGET_CORE_ID();
const BaseType_t xCoreID = ( BaseType_t ) portGET_CORE_ID();

/* If uxSchedulerSuspended is zero then this function does not match a
* previous call to vTaskSuspendAll(). */
Expand Down Expand Up @@ -6940,7 +6939,7 @@ static void prvResetNextTaskUnblockTime( void )
*/
void vTaskYieldWithinAPI( void )
{
const UBaseType_t xCoreID = portGET_CORE_ID();
const BaseType_t xCoreID = ( BaseType_t ) portGET_CORE_ID();

traceENTER_vTaskYieldWithinAPI();

Expand Down Expand Up @@ -6997,7 +6996,7 @@ static void prvResetNextTaskUnblockTime( void )

void vTaskEnterCritical( void )
{
const UBaseType_t xCoreID = portGET_CORE_ID();
const BaseType_t xCoreID = ( BaseType_t ) portGET_CORE_ID();

traceENTER_vTaskEnterCritical();

Expand Down Expand Up @@ -7050,7 +7049,7 @@ static void prvResetNextTaskUnblockTime( void )
UBaseType_t vTaskEnterCriticalFromISR( void )
{
UBaseType_t uxSavedInterruptStatus = 0;
const UBaseType_t xCoreID = portGET_CORE_ID();
const BaseType_t xCoreID = ( BaseType_t ) portGET_CORE_ID();

traceENTER_vTaskEnterCriticalFromISR();

Expand Down Expand Up @@ -7127,7 +7126,7 @@ static void prvResetNextTaskUnblockTime( void )

void vTaskExitCritical( void )
{
const UBaseType_t xCoreID = portGET_CORE_ID();
const BaseType_t xCoreID = ( BaseType_t ) portGET_CORE_ID();

traceENTER_vTaskExitCritical();

Expand Down Expand Up @@ -7190,7 +7189,7 @@ static void prvResetNextTaskUnblockTime( void )

void vTaskExitCriticalFromISR( UBaseType_t uxSavedInterruptStatus )
{
const UBaseType_t xCoreID = portGET_CORE_ID();
const BaseType_t xCoreID = ( BaseType_t ) portGET_CORE_ID();

traceENTER_vTaskExitCriticalFromISR( uxSavedInterruptStatus );

Expand Down

0 comments on commit bc1c607

Please sign in to comment.