]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/rf2xx/layers/LowPowerListeningLayerC.nc
Use BareSend/BareReceive instead of Send/Receive to avoid duplication of payload...
[tinyos-2.x.git] / tos / chips / rf2xx / layers / LowPowerListeningLayerC.nc
index ddb2a38aa26aabeb18b51a227853c1d4602dd284..76f0a9a2477d0e135f81369a0365cfdddadb64ef 100644 (file)
  * Author: Miklos Maroti
  */
 
-#include <LowPowerListeningLayer.h>
-
-#warning "*** USING LOW POWER LISTENING LAYER"
-
 configuration LowPowerListeningLayerC
 {
        provides
        {
                interface SplitControl;
-               interface Send;
-               interface Receive;
+               interface BareSend as Send;
+               interface BareReceive as Receive;
+               interface RadioPacket;
 
                interface LowPowerListening;
        }
        uses
        {
                interface SplitControl as SubControl;
-               interface Send as SubSend;
-               interface Receive as SubReceive;
+               interface BareSend as SubSend;
+               interface BareReceive as SubReceive;
+               interface RadioPacket as SubPacket;
 
                interface LowPowerListeningConfig as Config;
                interface PacketAcknowledgements;
@@ -53,11 +51,13 @@ implementation
        SplitControl = LowPowerListeningLayerP;
        Send = LowPowerListeningLayerP;
        Receive = LowPowerListeningLayerP;
+       RadioPacket = LowPowerListeningLayerP;
        LowPowerListening = LowPowerListeningLayerP;
 
        SubControl = LowPowerListeningLayerP;
        SubSend = LowPowerListeningLayerP;
        SubReceive = LowPowerListeningLayerP;
+       SubPacket = LowPowerListeningLayerP;
        Config = LowPowerListeningLayerP;
        PacketAcknowledgements = LowPowerListeningLayerP;