]> 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 489583937a437a3ad334c4111a4b65aaaf9015ef..340898332347116b4d71d612032b482aabd0045b 100644 (file)
@@ -27,16 +27,35 @@ configuration RF230SnifferC
 
 implementation
 {
-       components RF230SnifferP, MainC, SerialActiveMessageC, RF230LayerC, RF230ActiveMessageP, IEEE154PacketC, AssertC;
+       components RF230SnifferP, MainC, SerialActiveMessageC, AssertC;
        
        RF230SnifferP.Boot -> MainC;
        RF230SnifferP.SplitControl -> SerialActiveMessageC;
-       RF230SnifferP.RadioState -> RF230LayerC;
-
-       RF230LayerC.RF230Config -> RF230ActiveMessageP;
-
-       RF230ActiveMessageP.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;
+
 }