// #define REDMAC_DEBUG
+#ifdef REDMAC_PERFORMANCE
+#include <Performance.h>
+#endif
+
configuration RedMacC {
provides {
interface SplitControl;
interface MacReceive;
interface Packet;
interface LocalTime<T32khz> as LocalTime;
- interface SleepTime;
+ interface Sleeptime;
interface ChannelCongestion;
}
uses {
RedMacP = PacketReceive;
RedMacP = SubPacket;
RedMacP = Packet;
- RedMacP = SleepTime;
+ RedMacP = Sleeptime;
RedMacP.CcaStdControl -> Cca.StdControl;
RedMacP.ChannelMonitor -> Cca.ChannelMonitor;
RedMacP.Timer -> Timer;
RedMacP.SampleTimer -> SampleTimer;
RedMacP.Counter32khz16 -> Counter;
-/*
- components PlatformLedsC;
+
+/* components PlatformLedsC;
RedMacP.Led0 -> PlatformLedsC.Led0;
RedMacP.Led1 -> PlatformLedsC.Led1;
RedMacP.Led2 -> PlatformLedsC.Led2;
components new SerialDebugC() as SD;
RedMacP.SerialDebug -> SD;
#endif
+
+#ifdef REDMAC_PERFORMANCE
+ components new PerformanceC() as Perf;
+ RedMacP.Performance -> Perf;
+#endif
}