X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Fnet%2Fctp%2FCtpP.nc;h=ef3f476914e2442fed0a2f88a7ba861dc80cd87e;hb=e99ffc4e6f6188a8f9743a06695aecbfa439d576;hp=b2aa76a779dea4345b20d439fdb075706c468d3c;hpb=770a5e01ee0d25427c9b8bdda04e501451ae4974;p=tinyos-2.x.git diff --git a/tos/lib/net/ctp/CtpP.nc b/tos/lib/net/ctp/CtpP.nc index b2aa76a7..ef3f4769 100644 --- a/tos/lib/net/ctp/CtpP.nc +++ b/tos/lib/net/ctp/CtpP.nc @@ -152,9 +152,6 @@ implementation { Router.CtpCongestion -> Forwarder; CtpInfo = Router; - components CC2420ActiveMessageC; - components CC2420PacketC as CC2420; - Router.CC2420Packet -> CC2420; components new TimerMilliC() as RetxmitTimer; Forwarder.RetxmitTimer -> RetxmitTimer; @@ -189,7 +186,19 @@ implementation { Estimator.SubReceive -> ReceiveControl; Estimator.SubPacket -> SendControl; Estimator.SubAMPacket -> SendControl; - Estimator.LinkPacketMetadata -> CC2420ActiveMessageC; + +#if defined(PLATFORM_TELOSB) || defined(PLATFORM_MICAZ) + components CC2420ActiveMessageC as PlatformActiveMessageC; +#elif defined (PLATFORM_MICA2) || defined (PLATFORM_MICA2DOT) + components CC1000ActiveMessageC as PlatformActiveMessageC; +#else + components DummyActiveMessageP as PlatformActiveMessageC; +#endif + + Estimator.LinkPacketMetadata -> PlatformActiveMessageC; + + // eventually // Estimator.LinkPacketMetadata -> ActiveMessageC; + MainC.SoftwareInit -> Estimator; }