aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/debug.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-11-27 11:43:28 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-11-27 11:43:28 +0000
commita134cd919ea3e6fee591bc29d360f3da74f46a8b (patch)
tree621c6bd96434a06ce6fd517934f1db6255187c60 /src/include/debug.h
parenta62cb84475bb6212554b847751a409a6183f05a0 (diff)
downloadChibiOS-a134cd919ea3e6fee591bc29d360f3da74f46a8b.tar.gz
ChibiOS-a134cd919ea3e6fee591bc29d360f3da74f46a8b.tar.bz2
ChibiOS-a134cd919ea3e6fee591bc29d360f3da74f46a8b.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@115 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include/debug.h')
-rw-r--r--src/include/debug.h13
1 files changed, 11 insertions, 2 deletions
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_ */
/** @} */