From 089a15c110b6daca18de641456328c5a02fb7148 Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Thu, 24 Oct 2013 12:42:04 +0200 Subject: [PATCH] merge thread_measure_stack_usage declarations --- core/include/kernel_internal.h | 9 --------- core/include/thread.h | 1 + 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/core/include/kernel_internal.h b/core/include/kernel_internal.h index 45cc89c7ad..05723cf6ac 100644 --- a/core/include/kernel_internal.h +++ b/core/include/kernel_internal.h @@ -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_ */ diff --git a/core/include/thread.h b/core/include/thread.h index 064aefb344..8fc747dbfa 100644 --- a/core/include/thread.h +++ b/core/include/thread.h @@ -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);