mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-12 09:07:46 -04:00
Make the pcObjectGetName() API function naming consistent - so rename pcTaskGetTaskName() to pcTaskGetName(), rename pcTimerGetTimerName() to pcTimerGetName() and add a #defines in FreeRTOS.h to make the changes backward compatible.
This commit is contained in:
parent
aeb03e5fa0
commit
b9b64c0889
9 changed files with 25 additions and 32 deletions
|
@ -2063,20 +2063,16 @@ UBaseType_t uxTaskGetNumberOfTasks( void )
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
#if ( INCLUDE_pcTaskGetTaskName == 1 )
|
||||
char *pcTaskGetName( TaskHandle_t xTaskToQuery ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
|
||||
{
|
||||
TCB_t *pxTCB;
|
||||
|
||||
char *pcTaskGetTaskName( TaskHandle_t xTaskToQuery ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
|
||||
{
|
||||
TCB_t *pxTCB;
|
||||
|
||||
/* If null is passed in here then the name of the calling task is being
|
||||
queried. */
|
||||
pxTCB = prvGetTCBFromHandle( xTaskToQuery );
|
||||
configASSERT( pxTCB );
|
||||
return &( pxTCB->pcTaskName[ 0 ] );
|
||||
}
|
||||
|
||||
#endif /* INCLUDE_pcTaskGetTaskName */
|
||||
/* If null is passed in here then the name of the calling task is being
|
||||
queried. */
|
||||
pxTCB = prvGetTCBFromHandle( xTaskToQuery );
|
||||
configASSERT( pxTCB );
|
||||
return &( pxTCB->pcTaskName[ 0 ] );
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
#if ( INCLUDE_xTaskGetTaskHandle == 1 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue