]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/timer/Msp430ClockC.nc
Msp430ClockC must pull in Msp430TimerC to attach the default Timer.overflow()
[tinyos-2.x.git] / tos / chips / msp430 / timer / Msp430ClockC.nc
index ecbb629ccd7ab4452af9f2cdba46851b58a11ec8..9051fc4054b56bdd9c9626474c9555089f6b3c50 100644 (file)
  * @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;
+  components new Msp430ClockP(TARGET_DCO_KHZ, ACLK_KHZ), Msp430TimerC;
 
   Init = Msp430ClockP;
   Msp430ClockInit = Msp430ClockP;