X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Fchips%2Fmsp430%2Fclock2%2FMsp430ClockP.nc;h=1ec121ac158ecbe7c8457ef8a04435cb85223b51;hp=16a9fb5f3b96c8a3748c5cb94bd859269051e3f7;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 diff --git a/tos/chips/msp430/clock2/Msp430ClockP.nc b/tos/chips/msp430/clock2/Msp430ClockP.nc index 16a9fb5f..1ec121ac 100644 --- a/tos/chips/msp430/clock2/Msp430ClockP.nc +++ b/tos/chips/msp430/clock2/Msp430ClockP.nc @@ -26,17 +26,17 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - + /** * Clock initialization for msp430's with the newer basic clock +, sometimes * referred to as basic clock 2. Derived from the Msp430ClockP for the * original basic clock peripheral (chips/msp430/clock/Msp430ClockP.nc), with * some refinements suggested by TI in ther example code, filename * MSP430x261x_dco_flashcal.c. - * + * * @author R. Steve McKown */ - + #include "Msp430Timer.h" generic module Msp430ClockP(uint16_t TARGET_DCO_KHZ, uint16_t ACLK_KHZ) @safe() @@ -81,7 +81,7 @@ implementation TACCTL2 = CM_1 + CCIS_1 + CAP; /* Capture on rising ACLK */ TACTL = TASSEL_2 + MC_2 + TACLR; /* Continuous mode, source SMCLK */ } - + command void Msp430ClockInit.defaultInitClocks() { const unsigned int divider = TARGET_DCO_KHZ / 1000; @@ -120,7 +120,7 @@ implementation { call Msp430ClockInit.defaultSetupDcoCalibrate(); } - + default event void Msp430ClockInit.initClocks() { call Msp430ClockInit.defaultInitClocks();