]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
adding dummy Milli Timer: apps that didn't wire any timers compiled with warnings
authorkusy <kusy>
Tue, 17 Jun 2008 22:46:48 +0000 (22:46 +0000)
committerkusy <kusy>
Tue, 17 Jun 2008 22:46:48 +0000 (22:46 +0000)
tos/chips/cc2420/packet/CC2420PacketC.nc

index 51bc23c94e5ea17e3f04ea519019c433f8f848f2..de537664f7284389ea7898884d292b564c6a9c15 100644 (file)
@@ -63,8 +63,11 @@ implementation {
   components CC2420ActiveMessageC;
   CC2420PacketP.Packet -> CC2420ActiveMessageC;
 
-  components Counter32khz32C, new CounterToLocalTimeC(T32khz), HilTimerMilliC;
+  components Counter32khz32C, new CounterToLocalTimeC(T32khz);
   CounterToLocalTimeC.Counter -> Counter32khz32C;
   CC2420PacketP.LocalTime32khz -> CounterToLocalTimeC;
+
+  //DummyTimer is introduced to compile apps that use no timers
+  components HilTimerMilliC, new TimerMilliC() as DummyTimer;
   CC2420PacketP.LocalTimeMilli -> HilTimerMilliC;
 }