mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 17:48:33 -04:00
Rename CPU to Core (#849)
This commit renames "CPU" to "Core" for any public facing API for consistency with other SMP related APIs (e.g., "configNUMBER_OF_CORES"). Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
This commit is contained in:
parent
9f4a0e308b
commit
fc7aca7ff2
3 changed files with 8 additions and 8 deletions
6
tasks.c
6
tasks.c
|
@ -6425,18 +6425,18 @@ static void prvResetNextTaskUnblockTime( void )
|
|||
return xReturn;
|
||||
}
|
||||
|
||||
TaskHandle_t xTaskGetCurrentTaskHandleCPU( BaseType_t xCoreID )
|
||||
TaskHandle_t xTaskGetCurrentTaskHandleForCore( BaseType_t xCoreID )
|
||||
{
|
||||
TaskHandle_t xReturn = NULL;
|
||||
|
||||
traceENTER_xTaskGetCurrentTaskHandleCPU( xCoreID );
|
||||
traceENTER_xTaskGetCurrentTaskHandleForCore( xCoreID );
|
||||
|
||||
if( taskVALID_CORE_ID( xCoreID ) != pdFALSE )
|
||||
{
|
||||
xReturn = pxCurrentTCBs[ xCoreID ];
|
||||
}
|
||||
|
||||
traceRETURN_xTaskGetCurrentTaskHandleCPU( xReturn );
|
||||
traceRETURN_xTaskGetCurrentTaskHandleForCore( xReturn );
|
||||
|
||||
return xReturn;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue