1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #260 from LudwigOrtmann/merge_thread_measure_stack_usage_declarations

merge thread_measure_stack_usage declarations
This commit is contained in:
LudwigOrtmann 2013-10-24 07:23:46 -07:00
commit abbad199e5
2 changed files with 1 additions and 9 deletions

View File

@ -41,14 +41,5 @@ void sched_task_exit(void);
*/
void thread_print_stack(void);
/**
* @brief Calculates stack usage if thread was created using CREATE_STACKTEST
*
* @param[in] stack The thread's stack
*
* @return The current usage (overwritten addresses) of the thread's stack
*/
int thread_measure_stack_usage(char *stack);
/** @} */
#endif /* KERNEL_INTERNAL_H_ */

View File

@ -81,6 +81,7 @@ int thread_getlastpid(void);
* Only works if the thread was created with the flag CREATE_STACKTEST.
*
* @param stack The stack you want to measure. try active_thread->stack_start.
* @return The current usage (overwritten addresses) of the thread's stack
*/
int thread_measure_stack_usage(char *stack);