X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Ftda5250%2Fmac%2FRedMacC.nc;h=469fe5ce431e612f256471973fd93b5d3b44cff0;hb=cb1337f25b267f92953096a200dd6148e1c7e09e;hp=ce862cb9a7e4375fc233fff9ef7a45a1a7240d70;hpb=be8a40060769bc7fb6061b291701ce00822de035;p=tinyos-2.x.git diff --git a/tos/chips/tda5250/mac/RedMacC.nc b/tos/chips/tda5250/mac/RedMacC.nc index ce862cb9..469fe5ce 100644 --- a/tos/chips/tda5250/mac/RedMacC.nc +++ b/tos/chips/tda5250/mac/RedMacC.nc @@ -35,6 +35,10 @@ // #define REDMAC_DEBUG +#ifdef REDMAC_PERFORMANCE +#include +#endif + configuration RedMacC { provides { interface SplitControl; @@ -42,7 +46,7 @@ configuration RedMacC { interface MacReceive; interface Packet; interface LocalTime 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 }