From: smckown Date: Sun, 14 Sep 2008 14:50:06 +0000 (+0000) Subject: Turn on TimerA. This is done for all other msp430 platforms, so we want to X-Git-Tag: release/2.1.0-1~41 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=4d58bafa03fcdfbb15802119e72051bb8fd395fb Turn on TimerA. This is done for all other msp430 platforms, so we want to be consistent for now. A better solution is resource management to decide when the timers need to run so they can be off when not needed to safe power. --- diff --git a/tos/platforms/tmicore/MoteClockP.nc b/tos/platforms/tmicore/MoteClockP.nc index 84acca22..921bbc92 100644 --- a/tos/platforms/tmicore/MoteClockP.nc +++ b/tos/platforms/tmicore/MoteClockP.nc @@ -61,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;