]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/rf2xx/rf230/RF230RadioP.nc
tune the LPL constants (use 5 ms listen check)
[tinyos-2.x.git] / tos / chips / rf2xx / rf230 / RF230RadioP.nc
index f4b0eab716172d4bfd62c7768d5bf90b3eaec53d..2a259f088d6db73cb1783a3b5fcdb2d21106109d 100644 (file)
@@ -246,6 +246,8 @@ implementation
         * congestion backoff = 0x7 * CC2420_BACKOFF_PERIOD = 70 jiffies = 2240 microsec
         */
 
+#ifndef LOW_POWER_LISTENING
+
        async command uint16_t RandomCollisionConfig.getMinimumBackoff()
        {
                return (uint16_t)(320 * RADIO_ALARM_MICROSEC);
@@ -261,6 +263,8 @@ implementation
                return (uint16_t)(2240 * RADIO_ALARM_MICROSEC);
        }
 
+#endif
+
        async command uint16_t RandomCollisionConfig.getTransmitBarrier(message_t* msg)
        {
                uint16_t time;
@@ -330,6 +334,26 @@ implementation
                return call Ieee154PacketLayer.getAckRequired(msg);
        }
 
+       command uint16_t LowPowerListeningConfig.getListenLength()
+       {
+               return 5;
+       }
+
+       async command uint16_t RandomCollisionConfig.getMinimumBackoff()
+       {
+               return (uint16_t)(320 * RADIO_ALARM_MICROSEC);
+       }
+
+       async command uint16_t RandomCollisionConfig.getInitialBackoff(message_t* msg)
+       {
+               return (uint16_t)(1600 * RADIO_ALARM_MICROSEC);
+       }
+
+       async command uint16_t RandomCollisionConfig.getCongestionBackoff(message_t* msg)
+       {
+               return (uint16_t)(3200 * RADIO_ALARM_MICROSEC);
+       }
+
 #endif
 
 }