]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/debug/Debug.nc
Add debug library; use with tmimsp platforms
[tinyos-2.x.git] / tos / lib / debug / Debug.nc
diff --git a/tos/lib/debug/Debug.nc b/tos/lib/debug/Debug.nc
new file mode 100644 (file)
index 0000000..3fc6880
--- /dev/null
@@ -0,0 +1,23 @@
+/* Copyright (c) 2006-2009 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>
+#include "Uprint.h"
+
+interface Debug {
+  async command void raw(const void* ptr, uint16_t len);
+  async command void byteAsBits(uint8_t byte);
+  async command void hexdump(const void* ptr, uint16_t len);
+
+  /* Used for dbgprintf; see Debug.h */
+  async command uprint_ptr_t uptr();
+}