Add trace macros.

This commit is contained in:
Richard Barry 2008-03-03 16:32:37 +00:00
parent b8b70528f4
commit 71ef3153ea
2 changed files with 175 additions and 2 deletions

View file

@ -866,6 +866,19 @@ void vTaskStartTrace( signed portCHAR * pcBuffer, unsigned portLONG ulBufferSize
*/
unsigned portLONG ulTaskEndTrace( void );
/**
* task.h
* <PRE>unsigned portBASE_TYPE uxGetStackHighWaterMark( void );</PRE>
*
* INCLUDE_uxGetStackHighWaterMark 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,
* 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
* to overflowing its stack.
*/
unsigned portBASE_TYPE uxGetStackHighWaterMark( void );
/*-----------------------------------------------------------
* SCHEDULER INTERNALS AVAILABLE FOR PORTING PURPOSES