mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-06-25 10:37:09 +08:00
Modified uxTaskGetStackHighWaterMark() to take a parameter for the task to be checked, rather than just checking the stack of the calling task.
This commit is contained in:
@ -1858,9 +1858,12 @@ tskTCB *pxNewTCB;
|
||||
|
||||
#if ( INCLUDE_uxTaskGetStackHighWaterMark == 1 )
|
||||
|
||||
unsigned portBASE_TYPE uxTaskGetStackHighWaterMark( void )
|
||||
unsigned portBASE_TYPE uxTaskGetStackHighWaterMark( xTaskHandle xTask )
|
||||
{
|
||||
return usTaskCheckFreeStackSpace( ( unsigned portCHAR * ) pxCurrentTCB->pxStack );
|
||||
tskTCB *pxTCB;
|
||||
|
||||
pxTCB = prvGetTCBFromHandle( xTask );
|
||||
return usTaskCheckFreeStackSpace( ( unsigned portCHAR * ) pxTCB->pxStack );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user