]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/tda5250/mac/RedMacC.nc
- instrumented for performance evaluation
[tinyos-2.x.git] / tos / chips / tda5250 / mac / RedMacC.nc
index ce862cb9a7e4375fc233fff9ef7a45a1a7240d70..469fe5ce431e612f256471973fd93b5d3b44cff0 100644 (file)
 
 // #define REDMAC_DEBUG
 
+#ifdef REDMAC_PERFORMANCE
+#include <Performance.h>
+#endif
+
 configuration RedMacC {
   provides {
     interface SplitControl;
@@ -42,7 +46,7 @@ configuration RedMacC {
     interface MacReceive;
     interface Packet;
     interface LocalTime<T32khz> as LocalTime;
-    interface SleepTime;
+    interface Sleeptime;
     interface ChannelCongestion;
   }
   uses {
@@ -81,7 +85,7 @@ implementation {
     RedMacP = PacketReceive;
     RedMacP = SubPacket;
     RedMacP = Packet;
-    RedMacP = SleepTime;
+    RedMacP = Sleeptime;
     
     RedMacP.CcaStdControl -> Cca.StdControl;
     RedMacP.ChannelMonitor -> Cca.ChannelMonitor;
@@ -106,5 +110,10 @@ implementation {
     components new SerialDebugC() as SD;
     RedMacP.SerialDebug -> SD;
 #endif
+
+#ifdef REDMAC_PERFORMANCE
+    components new PerformanceC() as Perf;
+    RedMacP.Performance -> Perf;
+#endif
 }