]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/net/Deluge/extra/mulle/ReprogramGuardP.nc
Merge TinyOS 2.1.1 into master.
[tinyos-2.x.git] / tos / lib / net / Deluge / extra / mulle / ReprogramGuardP.nc
diff --git a/tos/lib/net/Deluge/extra/mulle/ReprogramGuardP.nc b/tos/lib/net/Deluge/extra/mulle/ReprogramGuardP.nc
new file mode 100644 (file)
index 0000000..b8064cb
--- /dev/null
@@ -0,0 +1,22 @@
+// TODO(henrik) implement.
+
+module ReprogramGuardP
+{
+  provides interface ReprogramGuard;
+}
+implementation
+{
+  enum {
+    VTHRESH = 0x0, // 0V
+  };
+  task void sendOk()
+  {
+    signal ReprogramGuard.okToProgramDone(true);
+  }
+
+  command error_t ReprogramGuard.okToProgram()
+  {
+    post sendOk();
+    return SUCCESS;
+  }
+}