]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/rf2xx/layers/LowPowerListeningLayerC.nc
tune the LPL constants (use 5 ms listen check)
[tinyos-2.x.git] / tos / chips / rf2xx / layers / LowPowerListeningLayerC.nc
index b1efca25b17cbfa5479c0c5f7df7b5d3eed04514..d3b8ebe71d7ccac536e4d684c73c2694f20f6f7f 100644 (file)
  * Author: Miklos Maroti
  */
 
-#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 PacketField<uint16_t> as PacketSleepInterval;
-               interface IEEE154Packet;
+               interface LowPowerListeningConfig as Config;
                interface PacketAcknowledgements;
        }
 }
@@ -48,18 +47,24 @@ configuration LowPowerListeningLayerC
 implementation
 {
        components LowPowerListeningLayerP, new TimerMilliC();
+       components SystemLowPowerListeningC;
 
        SplitControl = LowPowerListeningLayerP;
        Send = LowPowerListeningLayerP;
        Receive = LowPowerListeningLayerP;
+       RadioPacket = LowPowerListeningLayerP;
        LowPowerListening = LowPowerListeningLayerP;
 
        SubControl = LowPowerListeningLayerP;
        SubSend = LowPowerListeningLayerP;
        SubReceive = LowPowerListeningLayerP;
-       PacketSleepInterval = LowPowerListeningLayerP;
-       IEEE154Packet = LowPowerListeningLayerP;
+       SubPacket = LowPowerListeningLayerP;
+       Config = LowPowerListeningLayerP;
        PacketAcknowledgements = LowPowerListeningLayerP;
        
        LowPowerListeningLayerP.Timer -> TimerMilliC;
+       LowPowerListeningLayerP.SystemLowPowerListening -> SystemLowPowerListeningC;
+
+       components NoLedsC as LedsC;
+       LowPowerListeningLayerP.Leds -> LedsC;
 }