]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/net/dip/AMDIPC.nc
Initial checkin for DIP
[tinyos-2.x.git] / tos / lib / net / dip / AMDIPC.nc
diff --git a/tos/lib/net/dip/AMDIPC.nc b/tos/lib/net/dip/AMDIPC.nc
new file mode 100644 (file)
index 0000000..c1e0513
--- /dev/null
@@ -0,0 +1,29 @@
+#include <DIP.h>
+
+configuration AMDIPC {
+  provides interface DIPSend;
+  provides interface DIPReceive as DataReceive;
+  provides interface DIPReceive as VectorReceive;
+  provides interface DIPReceive as SummaryReceive;
+}
+
+implementation {
+  components AMDIPP;
+  components new AMSenderC(AM_DIP) as SendC;
+  components new AMReceiverC(AM_DIP) as ReceiveC;
+
+  AMDIPP.NetAMSend -> SendC.AMSend;
+  AMDIPP.NetReceive -> ReceiveC.Receive;
+
+  components MainC;
+  MainC.SoftwareInit -> AMDIPP.Init;
+  AMDIPP.Boot -> MainC;
+
+  components ActiveMessageC;
+  AMDIPP.AMSplitControl -> ActiveMessageC;
+
+  DIPSend = AMDIPP.DIPSend;
+  DataReceive = AMDIPP.DIPDataReceive;
+  VectorReceive = AMDIPP.DIPVectorReceive;
+  SummaryReceive = AMDIPP.DIPSummaryReceive;
+}