: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
- <tinyos-devel at mail.millennium.berkeley.edu>
-
.. Note::
This memo documents a part of TinyOS for the TinyOS Community, and
provides {
interface Init;
interface SplitControl;
- interface Resource;
- interface FlashCommands;
- ...
+ interface Resource;
+ interface FlashCommands;
+ ...
}
}
implementation {
generic module PowerManagerC(uint8_t POWERDOWN_DELAY) {
provides {
- interface Init;
+ interface Init;
}
uses {
- interface SplitControl;
- interface ResourceDefaultOwner;
+ interface SplitControl;
+ interface ResourceDefaultOwner;
}
}
implementation {
#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;