mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-10 21:55:07 -05:00
Merge branch 'main' into MISRA-13.2
This commit is contained in:
commit
69b6e18d5b
2 changed files with 21 additions and 19 deletions
36
tasks.c
36
tasks.c
|
|
@ -6565,24 +6565,28 @@ static void prvResetNextTaskUnblockTime( void )
|
|||
|
||||
return xReturn;
|
||||
}
|
||||
|
||||
TaskHandle_t xTaskGetCurrentTaskHandleForCore( BaseType_t xCoreID )
|
||||
{
|
||||
TaskHandle_t xReturn = NULL;
|
||||
|
||||
traceENTER_xTaskGetCurrentTaskHandleForCore( xCoreID );
|
||||
|
||||
if( taskVALID_CORE_ID( xCoreID ) != pdFALSE )
|
||||
{
|
||||
xReturn = pxCurrentTCBs[ xCoreID ];
|
||||
}
|
||||
|
||||
traceRETURN_xTaskGetCurrentTaskHandleForCore( xReturn );
|
||||
|
||||
return xReturn;
|
||||
}
|
||||
#endif /* #if ( configNUMBER_OF_CORES == 1 ) */
|
||||
|
||||
TaskHandle_t xTaskGetCurrentTaskHandleForCore( BaseType_t xCoreID )
|
||||
{
|
||||
TaskHandle_t xReturn = NULL;
|
||||
|
||||
traceENTER_xTaskGetCurrentTaskHandleForCore( xCoreID );
|
||||
|
||||
if( taskVALID_CORE_ID( xCoreID ) != pdFALSE )
|
||||
{
|
||||
#if ( configNUMBER_OF_CORES == 1 )
|
||||
xReturn = pxCurrentTCB;
|
||||
#else /* #if ( configNUMBER_OF_CORES == 1 ) */
|
||||
xReturn = pxCurrentTCBs[ xCoreID ];
|
||||
#endif /* #if ( configNUMBER_OF_CORES == 1 ) */
|
||||
}
|
||||
|
||||
traceRETURN_xTaskGetCurrentTaskHandleForCore( xReturn );
|
||||
|
||||
return xReturn;
|
||||
}
|
||||
|
||||
#endif /* ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) ) */
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue