]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/debug/NoDebugP.nc
Add debug library; use with tmimsp platforms
[tinyos-2.x.git] / tos / lib / debug / NoDebugP.nc
diff --git a/tos/lib/debug/NoDebugP.nc b/tos/lib/debug/NoDebugP.nc
new file mode 100644 (file)
index 0000000..e85fe17
--- /dev/null
@@ -0,0 +1,23 @@
+/* Copyright (c) 2006-2007 by Sporian Microsystems, Inc.
+ * All Rights Reserved.
+ *
+ * This document is the proprietary and confidential property of Sporian
+ * Microsystems, Inc.  All use, distribution, reproduction or re-distribution
+ * is disallowed without the prior express written consent of Sporian
+ * Microsystems, Inc.
+ */
+
+/* A simple debug component.
+ */
+
+#include <stdarg.h>
+
+module NoDebugP {
+  provides interface Debug;
+}
+implementation {
+  async command uprint_ptr_t Debug.uptr() { return NULL; }
+  async command void Debug.raw(const void* string, uint16_t len) {}
+  async command void Debug.byteAsBits(uint8_t byte) {}
+  async command void Debug.hexdump(const void* addr, uint16_t len) {}
+}