[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/msp430/timer Msp430TimerC.nc, 1.2, 1.3 Msp430TimerCommonP.nc, 1.2, 1.3
Kevin Klues
klueska at users.sourceforge.net
Thu Apr 17 15:38:36 PDT 2008
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/msp430/timer
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv5147/timer
Modified Files:
Msp430TimerC.nc Msp430TimerCommonP.nc
Log Message:
Update to centralize inside one module where all interrupt handlers are signaled from
Index: Msp430TimerC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/msp430/timer/Msp430TimerC.nc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Msp430TimerC.nc 12 Jul 2006 17:01:45 -0000 1.2
--- Msp430TimerC.nc 17 Apr 2008 22:38:34 -0000 1.3
***************
*** 160,163 ****
--- 160,169 ----
Msp430TimerB6.Timer -> Msp430TimerB.Timer;
Msp430TimerB6.Event -> Msp430TimerB.Event[6];
+
+ components HplMsp430InterruptSigP;
+ Common.SIGNAL_TIMERA0_VECTOR -> HplMsp430InterruptSigP.SIGNAL_TIMERA0_VECTOR;
+ Common.SIGNAL_TIMERA1_VECTOR -> HplMsp430InterruptSigP.SIGNAL_TIMERA1_VECTOR;
+ Common.SIGNAL_TIMERB0_VECTOR -> HplMsp430InterruptSigP.SIGNAL_TIMERB0_VECTOR;
+ Common.SIGNAL_TIMERB1_VECTOR -> HplMsp430InterruptSigP.SIGNAL_TIMERB1_VECTOR;
}
Index: Msp430TimerCommonP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/msp430/timer/Msp430TimerCommonP.nc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Msp430TimerCommonP.nc 12 Jul 2006 17:01:45 -0000 1.2
--- Msp430TimerCommonP.nc 17 Apr 2008 22:38:34 -0000 1.3
***************
*** 1,3 ****
--- 1,27 ----
+ /* "Copyright (c) 2000-2003 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software and its
+ * documentation for any purpose, without fee, and without written agreement
+ * is hereby granted, provided that the above copyright notice, the following
+ * two paragraphs and the author appear in all copies of this software.
+ *
+ * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
+ * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY
+ * OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS."
+ */
+
+ /**
+ * @author Cory Sharp <cssharp at eecs.berkeley.edu>
+ */
+
module Msp430TimerCommonP
{
***************
*** 6,16 ****
provides interface Msp430TimerEvent as VectorTimerB0;
provides interface Msp430TimerEvent as VectorTimerB1;
}
implementation
{
! TOSH_SIGNAL(TIMERA0_VECTOR) { signal VectorTimerA0.fired(); }
! TOSH_SIGNAL(TIMERA1_VECTOR) { signal VectorTimerA1.fired(); }
! TOSH_SIGNAL(TIMERB0_VECTOR) { signal VectorTimerB0.fired(); }
! TOSH_SIGNAL(TIMERB1_VECTOR) { signal VectorTimerB1.fired(); }
}
--- 30,44 ----
provides interface Msp430TimerEvent as VectorTimerB0;
provides interface Msp430TimerEvent as VectorTimerB1;
+ uses interface HplMsp430InterruptSig as SIGNAL_TIMERA0_VECTOR;
+ uses interface HplMsp430InterruptSig as SIGNAL_TIMERA1_VECTOR;
+ uses interface HplMsp430InterruptSig as SIGNAL_TIMERB0_VECTOR;
+ uses interface HplMsp430InterruptSig as SIGNAL_TIMERB1_VECTOR;
}
implementation
{
! inline async event void SIGNAL_TIMERA0_VECTOR.fired() { signal VectorTimerA0.fired(); }
! inline async event void SIGNAL_TIMERA1_VECTOR.fired() { signal VectorTimerA1.fired(); }
! inline async event void SIGNAL_TIMERB0_VECTOR.fired() { signal VectorTimerB0.fired(); }
! inline async event void SIGNAL_TIMERB1_VECTOR.fired() { signal VectorTimerB1.fired(); }
}
More information about the Tinyos-2-commits
mailing list