From: richardbarry Date: Wed, 5 Mar 2008 10:13:18 +0000 (+0000) Subject: Modified uxTaskGetStackHighWaterMark() to take a parameter for the task to be checked... X-Git-Tag: V4.8.0~51 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=435fea41c74de4ceef490507ca1a535b1a397c11;p=freertos Modified uxTaskGetStackHighWaterMark() to take a parameter for the task to be checked, rather than just checking the stack of the calling task. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@230 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/include/task.h b/Source/include/task.h index 98f1cb78f..169f8393b 100644 --- a/Source/include/task.h +++ b/Source/include/task.h @@ -868,17 +868,23 @@ unsigned portLONG ulTaskEndTrace( void ); /** * task.h - *
unsigned portBASE_TYPE uxTaskGetStackHighWaterMark( void );
+ *
unsigned portBASE_TYPE uxTaskGetStackHighWaterMark( xTaskHandle xTask );
* * INCLUDE_uxTaskGetStackHighWaterMark must be set to 1 in FreeRTOSConfig.h for * this function to be available. * - * Returns the high water mark for the stack of the calling task. That is, + * Returns the high water mark of the stack associated with xTask. That is, * the minimum free stack space there has been (in bytes) since the task - * started. The small the returned number the closer the task has come + * started. The smaller the returned number the closer the task has come * to overflowing its stack. + * + * @param xTask Handle of the task associated with the stack to be checked. + * Set xTask to NULL to check the stack of the calling task. + * + * @return The smallest amount of free stack space there has been (in bytes) + * since the task referenced by xTask was created. */ -unsigned portBASE_TYPE uxTaskGetStackHighWaterMark( void ); +unsigned portBASE_TYPE uxTaskGetStackHighWaterMark( xTaskHandle xTask ); /*----------------------------------------------------------- * SCHEDULER INTERNALS AVAILABLE FOR PORTING PURPOSES