]> 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 489583937a437a3ad334c4111a4b65aaaf9015ef..a10287adc02c866aa177984a476dd013a7d0bac1 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 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;
+
 }