]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tests/rf230/RF230Sniffer/RF230SnifferC.nc
Merge TinyOS 2.1.1 into master.
[tinyos-2.x.git] / apps / tests / rf230 / RF230Sniffer / RF230SnifferC.nc
index cf22b7dc0bf4300ab3e2030e11c83b26033055b1..340898332347116b4d71d612032b482aabd0045b 100644 (file)
@@ -27,12 +27,35 @@ configuration RF230SnifferC
 
 implementation
 {
-       components RF230SnifferP, MainC, SerialActiveMessageC, RF230LayerC, IEEE154PacketC;
-
+       components RF230SnifferP, MainC, SerialActiveMessageC, AssertC;
+       
        RF230SnifferP.Boot -> MainC;
        RF230SnifferP.SplitControl -> SerialActiveMessageC;
-       RF230SnifferP.RadioState -> RF230LayerC;
-       RF230SnifferP.IEEE154Packet -> IEEE154PacketC;
+       RF230SnifferP.RadioState -> RF230DriverLayerC;
+
+       // just to avoid a timer compilation bug
+       components new TimerMilliC();
+
+// -------- ActiveMessage
+
+       components RF230RadioP, Ieee154PacketLayerC;
+       RF230RadioP.Ieee154PacketLayer -> Ieee154PacketLayerC;
+
+// -------- TimeStamping
+
+       components TimeStampingLayerC;
+       TimeStampingLayerC.LocalTimeRadio -> RF230DriverLayerC;
+       TimeStampingLayerC.SubPacket -> MetadataFlagsLayerC;
+
+// -------- MetadataFlags
+
+       components MetadataFlagsLayerC;
+       MetadataFlagsLayerC.SubPacket -> RF230DriverLayerC;
+
+// -------- RF230 Driver
+
+       components RF230DriverLayerC;
+       RF230DriverLayerC.Config -> RF230RadioP;
+       RF230DriverLayerC.PacketTimeStamp -> TimeStampingLayerC;
 
-       RF230LayerC.RF230Config -> RF230SnifferP;
 }