]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/tda5250/mac/RedMacP.nc
looks like Cory's continous DcoCalib fix also fixes our problem
[tinyos-2.x.git] / tos / chips / tda5250 / mac / RedMacP.nc
index 1a8600f7a1f016e37df9404e5558bd4c06b2295f..8d31b8dea4e9536dc9a888d30707f4de724aca4b 100644 (file)
@@ -51,7 +51,6 @@ module RedMacP {
         interface SleepTime;
         interface Teamgeist;
         interface ChannelCongestion;
-        interface McuPowerOverride;
     }
     uses {
         interface StdControl as CcaStdControl;
@@ -194,8 +193,8 @@ implementation
         SUB_FOOTER_TIME=2*BYTE_TIME, // 2 bytes crc 38400 kBit/s with 4b6b encoding
         MAX_TIME_VALUE=0xFFFFFFFF,
         MAXTIMERVALUE=0xFFFF,        // helps to compute backoff
-        //DEFAULT_SLEEP_TIME=3250,
-        DEFAULT_SLEEP_TIME=6500,
+        DEFAULT_SLEEP_TIME=3250,
+        // DEFAULT_SLEEP_TIME=6500,
         // DEFAULT_SLEEP_TIME=9750,
         DATA_DETECT_TIME=17,
         RX_SETUP_TIME=111,    // time to set up receiver
@@ -1313,17 +1312,5 @@ implementation
     async event void RadioModes.TimerModeDone() {}
     async event void RadioModes.SelfPollingModeDone() {}
     async event void RadioModes.PWDDDInterrupt() {}
-
-    /** prevent MCU from going into a too low power mode */
-    async command mcu_power_t McuPowerOverride.lowestState() {
-        mcu_power_t mp;
-        if(macState != SLEEP) {
-            mp = MSP430_POWER_LPM1;
-        }
-        else {
-            mp = MSP430_POWER_LPM3;
-        }
-        return mp;
-    }
 }