* @author Cory Sharp <cssharp@eecs.berkeley.edu>
*/
-configuration Msp430ClockC
+generic configuration Msp430ClockC(uint16_t TARGET_DCO_KHZ, uint16_t ACLK_KHZ)
{
provides interface Init;
provides interface Msp430ClockInit;
}
implementation
{
- components Msp430ClockP
- , Msp430DcoCalibC //perpetual recalibration with each ACLK overflow
- ;
+ components new Msp430ClockP(TARGET_DCO_KHZ, ACLK_KHZ), Msp430TimerC, McuSleepC;
Init = Msp430ClockP;
Msp430ClockInit = Msp430ClockP;
+ McuSleepC.McuPowerOverride -> Msp430ClockP;
}