X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Fnet%2Fblip%2FIPDispatchC.nc;h=6abcc5af2996408dea2dbf1118c6a550ceb90aeb;hb=53433f70ad274e33b197f35a8daaaa5d21c24ec6;hp=66a44c0f2c8f27308ad69fb14d8a6842f159112d;hpb=3d5c78e867d6fd52e44894e93e4bd0c172071522;p=tinyos-2.x.git diff --git a/tos/lib/net/blip/IPDispatchC.nc b/tos/lib/net/blip/IPDispatchC.nc index 66a44c0f..6abcc5af 100644 --- a/tos/lib/net/blip/IPDispatchC.nc +++ b/tos/lib/net/blip/IPDispatchC.nc @@ -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;