]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/clock/Msp430ClockC.nc
Make Msp430ClockC a generic so that the target DCO clock and the ACLK can be
[tinyos-2.x.git] / tos / chips / msp430 / clock / Msp430ClockC.nc
index 5249fbe0ac6ba1f8de65d0e52ae6788ecc08ed22..ec37861a102daeb778863254eabfd225d74ad136 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;
+  components new Msp430ClockP(TARGET_DCO_KHZ, ACLK_KHZ);
 
   Init = Msp430ClockP;
   Msp430ClockInit = Msp430ClockP;