]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/tmicore/MoteClockP.nc
Turn on TimerA. This is done for all other msp430 platforms, so we want to
[tinyos-2.x.git] / tos / platforms / tmicore / MoteClockP.nc
index 3502a0a4f9c58b7fa996463933697626489ecec8..921bbc92b3c18d994fccc47ee26d2b2719b875dc 100644 (file)
  * @author R. Steve McKown <smckown@gmail.com>
  */
  
-//#include "msp430hardware.h"
 #include "Msp430Timer.h"
 
-#define MS430DCOSPEC_H
-#define TARGET_DCO_KHZ 8192 // the target DCO clock rate in binary kHz
-//#define TARGET_DCO_KHZ 4096 // the target DCO clock rate in binary kHz
-#define ACLK_KHZ 32 // the ACLK rate in binary kHz
-
 module MoteClockP {
   provides interface Init;
   uses {
@@ -67,7 +61,8 @@ implementation {
        BCSCTL2 = SELM_0 | DIVM_0 | DIVS_3;
        DCOCTL = CALDCO_8MHZ;
 
-       /* Turn on TimerB, driven by ACLK */
+       /* Turn on timers A and B */
+       TACTL |= MC_2;
        TBCTL |= MC_2;
       }
       return SUCCESS;