]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/power/SplitControlDeferredPowerManagerC.nc
Make sure that Printf was the one that started serial before running the code inside...
[tinyos-2.x.git] / tos / lib / power / SplitControlDeferredPowerManagerC.nc
index 256286c8405a93b5a47cc3b8cc486b23351f43b3..8c55753499967884620edb887a0a70e9be26d9d3 100644 (file)
@@ -29,6 +29,8 @@
  */
  
 /**
+ * Please refer to TEP 115 for more information about this component and its
+ * intended use.<br><br>
  *
  * This component povides a power management policy for managing the power
  * states of non-virtualized devices.  Non-virtualized devices are shared
  *                        before shutting down the device once it is free.
  * 
  * @author Kevin Klues (klueska@cs.wustl.edu)
- * @see  Please refer to TEP 115 for more information about this component and its
- *          intended use.
  */
  
 generic configuration SplitControlDeferredPowerManagerC(uint32_t delay) {
-  provides {
-    interface Init;
-  }
   uses {
     interface SplitControl;
 
     interface PowerDownCleanup;
-    interface Init as ArbiterInit;
-    interface ResourceController;
+    interface ResourceDefaultOwner;
     interface ArbiterInfo;
   }
 }
 implementation {
   components new TimerMilliC(),
              new DeferredPowerManagerP(delay) as PowerManager;
-
-  Init = PowerManager;
  
   PowerManager.SplitControl = SplitControl;
 
   PowerManager.PowerDownCleanup = PowerDownCleanup;
  
-  PowerManager.ArbiterInit  = ArbiterInit;
-  PowerManager.ResourceController = ResourceController;
+  PowerManager.ResourceDefaultOwner = ResourceDefaultOwner;
   PowerManager.ArbiterInfo = ArbiterInfo;
 
   PowerManager.TimerMilli -> TimerMilliC;