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;