]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Fix the wiring for IEEE154 6LOWPAN
authormmaroti <mmaroti>
Tue, 17 Jun 2008 18:18:49 +0000 (18:18 +0000)
committermmaroti <mmaroti>
Tue, 17 Jun 2008 18:18:49 +0000 (18:18 +0000)
tos/chips/rf230/RF230ActiveMessageC.nc

index 34315e912955e4833998899386b52e93ad4d923b..96a6fa7f3fd313027e7def7303da868940fac47a 100644 (file)
@@ -70,18 +70,16 @@ implementation
        LowPowerListening = LowPowerListeningLayerC;
 
        components ActiveMessageLayerC;
-#ifdef LOW_POWER_LISTENING
-       components LowPowerListeningLayerC;
-#else  
-       components new DummyLayerC() as LowPowerListeningLayerC;
-#endif
-
 #ifdef TFRAMES_ENABLED
        components new DummyLayerC() as IEEE154NetworkLayerC;
 #else
        components IEEE154NetworkLayerC;
 #endif
-
+#ifdef LOW_POWER_LISTENING
+       components LowPowerListeningLayerC;
+#else  
+       components new DummyLayerC() as LowPowerListeningLayerC;
+#endif
        components MessageBufferLayerC;
        components UniqueLayerC;
        components TrafficMonitorLayerC;
@@ -101,9 +99,13 @@ implementation
 
        ActiveMessageLayerC.Config -> RF230ActiveMessageP;
        ActiveMessageLayerC.AMPacket -> IEEE154PacketC;
-       ActiveMessageLayerC.SubSend -> UniqueLayerC;
-       ActiveMessageLayerC.SubReceive -> LowPowerListeningLayerC;
+       ActiveMessageLayerC.SubSend -> IEEE154NetworkLayerC;
+       ActiveMessageLayerC.SubReceive -> IEEE154NetworkLayerC;
+
+       IEEE154NetworkLayerC.SubSend -> UniqueLayerC;
+       IEEE154NetworkLayerC.SubReceive -> LowPowerListeningLayerC;
 
+       // the UniqueLayer is wired at two points
        UniqueLayerC.Config -> RF230ActiveMessageP;
        UniqueLayerC.SubSend -> LowPowerListeningLayerC;