]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/cc2420/lpl/DummyLplP.nc
Merge TinyOS 2.1.1 into master.
[tinyos-2.x.git] / tos / chips / cc2420 / lpl / DummyLplP.nc
index dbc6bb53932c0d15c7ce618eacb086c44ae781e4..36a79ffaa9b632611b7ea19878109b891f182da6 100644 (file)
@@ -32,7 +32,7 @@
 /**
  * Dummy low power listening interface used when LowPowerListening is not
  * compiled in with the application.
- * Sleep interval is always 0, and duty cycle is always 100%
+ * Wakeup interval is always 0 (always on)
  * @author David Moss
  */
  
@@ -44,41 +44,19 @@ module DummyLplP {
 
 implementation {
 
-  command void LowPowerListening.setLocalSleepInterval(uint16_t sleepIntervalMs) {
+  command void LowPowerListening.setLocalWakeupInterval(uint16_t intervalMs) {
   }
   
-  command uint16_t LowPowerListening.getLocalSleepInterval() {
+  command uint16_t LowPowerListening.getLocalWakeupInterval() {
     return 0;
   }
   
-  command void LowPowerListening.setLocalDutyCycle(uint16_t dutyCycle) {
+  command void LowPowerListening.setRemoteWakeupInterval(message_t *msg, uint16_t intervalMs) {
   }
   
-  command uint16_t LowPowerListening.getLocalDutyCycle() {
-    return 10000;
-  }
-  
-  command void LowPowerListening.setRxSleepInterval(message_t *msg, uint16_t sleepIntervalMs) {
-  }
-  
-  command uint16_t LowPowerListening.getRxSleepInterval(message_t *msg) {
+  command uint16_t LowPowerListening.getRemoteWakeupInterval(message_t *msg) {
     return 0;
   }
   
-  command void LowPowerListening.setRxDutyCycle(message_t *msg, uint16_t dutyCycle) {
-  }
-  
-  command uint16_t LowPowerListening.getRxDutyCycle(message_t *msg) {
-    return 10000;
-  }
-  
-  command uint16_t LowPowerListening.dutyCycleToSleepInterval(uint16_t dutyCycle) {
-    return 0;
-  }
-  
-  command uint16_t LowPowerListening.sleepIntervalToDutyCycle(uint16_t sleepInterval) {
-    return 10000;
-  }
-  
 }