Router.CtpCongestion -> Forwarder;
CtpInfo = Router;
- components CC2420ActiveMessageC;
- components CC2420PacketC as CC2420;
- Router.CC2420Packet -> CC2420;
components new TimerMilliC() as RetxmitTimer;
Forwarder.RetxmitTimer -> RetxmitTimer;
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;
}
--- /dev/null
+module DummyActiveMessageP {
+ provides interface LinkPacketMetadata;
+}
+
+implementation
+{
+
+ async command bool LinkPacketMetadata.highChannelQuality(message_t* msg) {
+ return 1;
+ }
+
+}