]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/timer/HilTimerMilliC.nc
LocalTimeMilliC + msp430 support therefore
[tinyos-2.x.git] / tos / chips / msp430 / timer / HilTimerMilliC.nc
index caa2180a6747d9dd8c9f2bb356e91b5c1bbc1147..9028414f98438d4b6451c71935614093cdc7612e 100644 (file)
@@ -33,16 +33,21 @@ configuration HilTimerMilliC
 {
   provides interface Init;
   provides interface Timer<TMilli> as TimerMilli[ uint8_t num ];
+  provides interface LocalTime<TMilli>;
 }
 implementation
 {
   components new AlarmMilli32C();
   components new AlarmToTimerC(TMilli);
   components new VirtualizeTimerC(TMilli,uniqueCount(UQ_TIMER_MILLI));
+  components new CounterToLocalTimeC(TMilli);
+  components CounterMilli32C;
 
   Init = AlarmMilli32C;
   TimerMilli = VirtualizeTimerC;
+  LocalTime = CounterToLocalTimeC;
 
   VirtualizeTimerC.TimerFrom -> AlarmToTimerC;
   AlarmToTimerC.Alarm -> AlarmMilli32C;
+  CounterToLocalTimeC.Counter -> CounterMilli32C;
 }