]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/tinynode/PlatformP.nc
Merge devel code into the trunk.
[tinyos-2.x.git] / tos / platforms / tinynode / PlatformP.nc
diff --git a/tos/platforms/tinynode/PlatformP.nc b/tos/platforms/tinynode/PlatformP.nc
new file mode 100644 (file)
index 0000000..81e9dbf
--- /dev/null
@@ -0,0 +1,19 @@
+#include "hardware.h"
+
+module PlatformP{
+  provides interface Init;
+  uses interface Init as Msp430ClockInit;
+  uses interface Init as LedsInit;
+}
+implementation {
+  command error_t Init.init() {
+    call Msp430ClockInit.init();
+    TOSH_SET_PIN_DIRECTIONS();
+    call LedsInit.init();
+    return SUCCESS;
+  }
+
+  default command error_t LedsInit.init() { return SUCCESS; }
+
+}
+