X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fmsp430%2Ftimer%2FMsp430TimerCommonP.nc;h=64c27704f1127abfc0fd29fdc966bbc365b4853c;hb=16188bae3116336995dd219b272b27df9c255411;hp=707ca7dbc088d80755acba0d729763cb5a87e2a1;hpb=58f043adfb4e8a321a9f93f4262122183fa92245;p=tinyos-2.x.git diff --git a/tos/chips/msp430/timer/Msp430TimerCommonP.nc b/tos/chips/msp430/timer/Msp430TimerCommonP.nc index 707ca7db..64c27704 100644 --- a/tos/chips/msp430/timer/Msp430TimerCommonP.nc +++ b/tos/chips/msp430/timer/Msp430TimerCommonP.nc @@ -1,44 +1,16 @@ -/* "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 - */ - module Msp430TimerCommonP { provides interface Msp430TimerEvent as VectorTimerA0; provides interface Msp430TimerEvent as VectorTimerA1; 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(); } + 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(); } }