summaryrefslogtreecommitdiff
path: root/Source/include
diff options
context:
space:
mode:
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2008-03-05 10:13:18 +0000
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2008-03-05 10:13:18 +0000
commit8a51ab12400d6bf48e649b7cbaf7617bfc8714f1 (patch)
tree0ff4408f693bd39246bfeb485092154850f861dd /Source/include
parentdc244681581c9bc8852f29f9ca598037bd6236dd (diff)
downloadfreertos-8a51ab12400d6bf48e649b7cbaf7617bfc8714f1.tar.gz
freertos-8a51ab12400d6bf48e649b7cbaf7617bfc8714f1.tar.bz2
freertos-8a51ab12400d6bf48e649b7cbaf7617bfc8714f1.tar.xz
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://freertos.svn.sourceforge.net/svnroot/freertos/trunk@230 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'Source/include')
-rw-r--r--Source/include/task.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/Source/include/task.h b/Source/include/task.h
index 98f1cb78..169f8393 100644
--- a/Source/include/task.h
+++ b/Source/include/task.h
@@ -868,17 +868,23 @@ unsigned portLONG ulTaskEndTrace( void );
/**
* task.h
- * <PRE>unsigned portBASE_TYPE uxTaskGetStackHighWaterMark( void );</PRE>
+ * <PRE>unsigned portBASE_TYPE uxTaskGetStackHighWaterMark( xTaskHandle xTask );</PRE>
*
* 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