From aaae9f4cf830496f8f8f80545f6ac133c714170a Mon Sep 17 00:00:00 2001 From: joxe Date: Mon, 3 Sep 2007 19:22:37 +0000 Subject: [PATCH] removed redundant code - configuration of basic clock subsystem in clock and rtimer_arch --- cpu/msp430/clock.c | 4 +--- cpu/msp430/rtimer-arch.c | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/cpu/msp430/clock.c b/cpu/msp430/clock.c index 53d6bf3f8..749142a16 100644 --- a/cpu/msp430/clock.c +++ b/cpu/msp430/clock.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * @(#)$Id: clock.c,v 1.7 2007/05/22 20:59:27 adamdunkels Exp $ + * @(#)$Id: clock.c,v 1.8 2007/09/03 19:22:37 joxe Exp $ */ @@ -120,8 +120,6 @@ clock_init(void) count = 0; - BCSCTL1 &= ~(DIVA1 + DIVA0); /* remove /8 divisor from ACLK again */ - /* Enable interrupts. */ eint(); diff --git a/cpu/msp430/rtimer-arch.c b/cpu/msp430/rtimer-arch.c index 163157898..1615d17c5 100644 --- a/cpu/msp430/rtimer-arch.c +++ b/cpu/msp430/rtimer-arch.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: rtimer-arch.c,v 1.4 2007/05/22 20:59:47 adamdunkels Exp $ + * $Id: rtimer-arch.c,v 1.5 2007/09/03 19:22:37 joxe Exp $ */ /** @@ -69,7 +69,7 @@ rtimer_arch_init(void) dint(); offset = 0; - + /* Select SMCLK (2.4576MHz), clear TAR; This makes the rtimer count the number of processor cycles executed by the CPU. */ //TBCTL = TBSSEL1 | TBCLR; @@ -82,8 +82,6 @@ rtimer_arch_init(void) /* Start Timer_B in continuous mode. */ TBCTL |= MC1; - BCSCTL1 &= ~(DIVA1 + DIVA0); /* remove /8 divisor from ACLK again */ - /* Enable interrupts. */ eint(); }