summaryrefslogtreecommitdiff
path: root/os/include/osdebug.h
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-01-26 23:04:31 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-01-26 23:04:31 +0100
commite1677a34840ea225d54d216757172907ebb78c0b (patch)
treed86fbfbb352dafcfd4c8d931495a15f682e9fef2 /os/include/osdebug.h
parent2737d81d205a1cf086197fc2f75445e491d18c1f (diff)
Adding debugging system for the os layer.
Diffstat (limited to 'os/include/osdebug.h')
-rw-r--r--os/include/osdebug.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/os/include/osdebug.h b/os/include/osdebug.h
new file mode 100644
index 0000000..8147cdb
--- /dev/null
+++ b/os/include/osdebug.h
@@ -0,0 +1,14 @@
+#ifndef __OSDEBUG_H__
+#define __OSDEBUG_H__
+
+#include <BoardConsole.h>
+
+void osDbgPrintf(const char * fmt, ...);
+
+#ifdef FULLDEBUG
+#define DBGOUT osDbgPrintf
+#else
+#define DBGOUT(...)
+#endif
+
+#endif