]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/timer/Msp430TimerCommonP.nc
Merge devel code into the trunk.
[tinyos-2.x.git] / tos / chips / msp430 / timer / Msp430TimerCommonP.nc
diff --git a/tos/chips/msp430/timer/Msp430TimerCommonP.nc b/tos/chips/msp430/timer/Msp430TimerCommonP.nc
new file mode 100644 (file)
index 0000000..64c2770
--- /dev/null
@@ -0,0 +1,16 @@
+
+module Msp430TimerCommonP
+{
+  provides interface Msp430TimerEvent as VectorTimerA0;
+  provides interface Msp430TimerEvent as VectorTimerA1;
+  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(); }
+}
+