]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/epic/PlatformLedsC.nc
Merge TinyOS 2.1.1 into master.
[tinyos-2.x.git] / tos / platforms / epic / PlatformLedsC.nc
diff --git a/tos/platforms/epic/PlatformLedsC.nc b/tos/platforms/epic/PlatformLedsC.nc
new file mode 100644 (file)
index 0000000..47340ea
--- /dev/null
@@ -0,0 +1,30 @@
+#include "hardware.h"
+
+configuration PlatformLedsC {
+  provides {
+    interface GeneralIO as Led0;
+    interface GeneralIO as Led1;
+    interface GeneralIO as Led2;
+  }
+  uses {
+    interface Init;
+  }
+}
+implementation {
+  components HplMsp430GeneralIOC as GeneralIOC;
+  components new Msp430GpioC() as Led0Impl;
+  components new Msp430GpioC() as Led1Impl;
+  components new Msp430GpioC() as Led2Impl;
+  components PlatformP;
+
+  Init = PlatformP.LedsInit;
+
+  Led0 = Led0Impl;
+  Led0Impl -> GeneralIOC.Port40;
+
+  Led1 = Led1Impl;
+  Led1Impl -> GeneralIOC.Port43;
+
+  Led2 = Led2Impl;
+  Led2Impl -> GeneralIOC.Port47;
+}