X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=doc%2Ftxt%2Ftep115.txt;h=398faaf60ee1f52da4d8dc9b4246329fa3b85488;hb=738579ccc0bce339be74aad761c7286258433e93;hp=f224d458afc3eb25655a0ca3bdf7cc4e7b25ed4d;hpb=d5d000d990811fff92c641d5bb717fc20ba337d9;p=tinyos-2.x.git diff --git a/doc/txt/tep115.txt b/doc/txt/tep115.txt index f224d458..398faaf6 100644 --- a/doc/txt/tep115.txt +++ b/doc/txt/tep115.txt @@ -5,16 +5,10 @@ Power Management of Non-Virtualised Devices :TEP: 115 :Group: Core Working Group :Type: Documentary -:Status: Draft +:Status: Final :TinyOS-Version: 2.x :Author: Kevin Klues, Vlado Handziski, Jan-Hinrich Hauer, Phil Levis -:Draft-Created: 11-Jan-2006 -:Draft-Version: $Revision$ -:Draft-Modified: $Date$ -:Draft-Discuss: TinyOS Developer List - - .. Note:: This memo documents a part of TinyOS for the TinyOS Community, and @@ -485,9 +479,9 @@ according to the *implicitly power management* model could be built as shown bel provides { interface Init; interface SplitControl; - interface Resource; - interface FlashCommands; - ... + interface Resource; + interface FlashCommands; + ... } } implementation { @@ -496,11 +490,11 @@ according to the *implicitly power management* model could be built as shown bel generic module PowerManagerC(uint8_t POWERDOWN_DELAY) { provides { - interface Init; + interface Init; } uses { - interface SplitControl; - interface ResourceDefaultOwner; + interface SplitControl; + interface ResourceDefaultOwner; } } implementation { @@ -511,15 +505,15 @@ according to the *implicitly power management* model could be built as shown bel #define MYFLASH_POWERDOWN_DELAY 1000 configuration MyFlashC { provides { - interface Init; - interface Resource; - interface FlashCommands; + interface Init; + interface Resource; + interface FlashCommands; } } implementation { components new PowerManagerC(MYFLASH_POWERDOWN_DELAY) - , FcfsArbiter(MYFLASH_RESOURCE) - , MyFlashP; + , FcfsArbiter(MYFLASH_RESOURCE) + , MyFlashP; Init = MyFlashP; Resource = FcfsArbiter;