]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/timer/Msp430ClockC.nc
MSP430 clock enhancements.
[tinyos-2.x.git] / tos / chips / msp430 / timer / Msp430ClockC.nc
index 7feab6ab025890a8b12bc76561e37ff99c1ba3e8..e2247fad343baefb1ba36174495a74ee717bbca1 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, Msp430TimerC, McuSleepC;
+  components new Msp430ClockP(TARGET_DCO_KHZ, ACLK_KHZ), Msp430TimerC, McuSleepC;
 
   Init = Msp430ClockP;
   Msp430ClockInit = Msp430ClockP;