From a134cd919ea3e6fee591bc29d360f3da74f46a8b Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 27 Nov 2007 11:43:28 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@115 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/include/debug.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/include/debug.h') diff --git a/src/include/debug.h b/src/include/debug.h index 38d9c2ff1..bf5b3ee7d 100644 --- a/src/include/debug.h +++ b/src/include/debug.h @@ -27,7 +27,7 @@ #ifdef CH_USE_DEBUG -#ifndef TRACE_BUFFER_SIZE +#ifndef TRACE_BUFFER_SIZE #define TRACE_BUFFER_SIZE 64 #endif @@ -52,7 +52,6 @@ extern char *dbglastmsg; extern "C" { #endif void chDbgInit(void); - void chDbgTrace(Thread *otp, Thread *ntp); void chDbgPuts(char *msg); void chDbgPanic(char *msg); #ifdef __cplusplus @@ -67,6 +66,16 @@ extern "C" { #endif /* CH_USE_DEBUG */ +#ifdef CH_USE_TRACE +#ifdef __cplusplus +extern "C" { +#endif + void chDbgTrace(Thread *otp, Thread *ntp); +#ifdef __cplusplus +} +#endif +#endif /* CH_USE_TRACE */ + #endif /* _DEBUG_H_ */ /** @} */ -- cgit v1.2.3