]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tests/rf230/RF230Sniffer/RF230SnifferC.nc
upate it to the latest driver architecture
[tinyos-2.x.git] / apps / tests / rf230 / RF230Sniffer / RF230SnifferC.nc
index cf83fb44810c6fbdc789646b093c978f5289f994..a10287adc02c866aa177984a476dd013a7d0bac1 100644 (file)
@@ -27,16 +27,35 @@ configuration RF230SnifferC
 
 implementation
 {
-       components RF230SnifferP, MainC, SerialActiveMessageC, RF230DriverLayerC, RF230ActiveMessageP, IEEE154Packet2C, AssertC;
+       components RF230SnifferP, MainC, SerialActiveMessageC, AssertC;
        
        RF230SnifferP.Boot -> MainC;
        RF230SnifferP.SplitControl -> SerialActiveMessageC;
        RF230SnifferP.RadioState -> RF230DriverLayerC;
 
-       RF230DriverLayerC.RF230DriverConfig -> RF230ActiveMessageP;
-
-       RF230ActiveMessageP.IEEE154Packet2 -> IEEE154Packet2C;
-
        // just to avoid a timer compilation bug
        components new TimerMilliC();
+
+// -------- ActiveMessage
+
+       components RF230ActiveMessageP, IEEE154MessageLayerC;
+       RF230ActiveMessageP.IEEE154MessageLayer -> IEEE154MessageLayerC;
+
+// -------- TimeStamping
+
+       components TimeStampingLayerC;
+       TimeStampingLayerC.LocalTimeRadio -> RF230DriverLayerC;
+       TimeStampingLayerC.SubPacket -> MetadataFlagsLayerC;
+
+// -------- MetadataFlags
+
+       components MetadataFlagsLayerC;
+       MetadataFlagsLayerC.SubPacket -> RF230DriverLayerC;
+
+// -------- RF230 Driver
+
+       components RF230DriverLayerC;
+       RF230DriverLayerC.Config -> RF230ActiveMessageP;
+       RF230DriverLayerC.PacketTimeStamp -> TimeStampingLayerC;
+
 }