From 873f4d0222949d993e7afa8cad097deb58570f56 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Mon, 7 Dec 2009 14:32:16 +0000 Subject: [PATCH] Need to clear the interrupt flag register for Timer A --- cpu/msp430/rtimer-arch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpu/msp430/rtimer-arch.c b/cpu/msp430/rtimer-arch.c index 774c27692..1101f59a5 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.9 2009/10/06 09:21:46 fros4943 Exp $ + * $Id: rtimer-arch.c,v 1.10 2009/12/07 14:32:16 adamdunkels Exp $ */ /** @@ -55,7 +55,9 @@ /*---------------------------------------------------------------------------*/ interrupt(TIMERA0_VECTOR) timera0 (void) { + int taiv; ENERGEST_ON(ENERGEST_TYPE_IRQ); + taiv = TAIV; rtimer_run_next(); if(process_nevents() > 0) { LPM4_EXIT;