]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/net/blip/IPDispatchC.nc
define and use RADIO_SEND_RESOURCE
[tinyos-2.x.git] / tos / lib / net / blip / IPDispatchC.nc
index 66a44c0f2c8f27308ad69fb14d8a6842f159112d..6abcc5af2996408dea2dbf1118c6a550ceb90aeb 100644 (file)
@@ -39,7 +39,7 @@ configuration IPDispatchC {
   }
 } implementation {
   
-  components Ieee154MessageC as MessageC;
+  components Ieee154MessageC as MessageC; 
   components MainC, IPDispatchP, IPAddressC, IPRoutingP; 
   components NoLedsC as LedsC;
   components RandomC;
@@ -50,18 +50,25 @@ configuration IPDispatchC {
 
   IPDispatchP.Boot -> MainC;
 
+#ifdef IEEE154FRAMES_ENABLED
   IPDispatchP.Ieee154Send -> MessageC;
+#else
+  components ResourceSendP;
+  ResourceSendP.SubSend -> MessageC;
+  ResourceSendP.Resource -> MessageC.SendResource[unique(RADIO_SEND_RESOURCE)];
+  IPDispatchP.Ieee154Send -> ResourceSendP.Ieee154Send;
+#endif
+
   IPDispatchP.Ieee154Receive -> MessageC.Ieee154Receive;
   IPDispatchP.Packet -> MessageC.Packet;
 #ifdef LOW_POWER_LISTENING
   IPDispatchP.LowPowerListening -> MessageC;
 #endif
 
-  components CC2420PacketC;
-
+  components ReadLqiC;
   IPDispatchP.Ieee154Packet -> MessageC;
   IPDispatchP.PacketLink -> MessageC;
-  IPDispatchP.CC2420Packet -> CC2420PacketC;
+  IPDispatchP.ReadLqi -> ReadLqiC;
 
   IPDispatchP.Leds -> LedsC;