]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
resource allocation is initialization
authorandreaskoepke <andreaskoepke>
Sun, 24 Jan 2010 23:02:37 +0000 (23:02 +0000)
committerandreaskoepke <andreaskoepke>
Sun, 24 Jan 2010 23:02:37 +0000 (23:02 +0000)
tos/platforms/eyesIFX/RadioDataLinkC.nc

index eee306f511147347ca070eeb94b652e962452dc3..aa50a5ceec79760cf54e23484c9f2f781c36920c 100644 (file)
@@ -65,11 +65,8 @@ implementation
         LinkLayerC as Llc;                       //The Link Layer Control module to use
     
     //Don't change wirings below this point, just change which components
-    //They are compposed of in the list above             
+    //They are compposed of in the list above
     
-    components MainC;
-    MainC.SoftwareInit -> PacketSerializer;
-            
     SplitControl = Llc;
     Llc.MacSplitControl -> Mac.SplitControl;
     Llc.RadioSplitControl -> Radio.SplitControl;
@@ -95,7 +92,14 @@ implementation
     PacketSerializer.PhyPacketRx -> UartPhy.PhyPacketRx;
     
     UartPhy.RadioByteComm -> Radio.RadioByteComm;
+
 #ifndef RADIO_UART_VCO
     components SmclkManagerC;
 #endif
+
+#ifdef PACKETSERIALIZER_DEBUG
+    components new SerialDebugC() as SD;
+    PacketSerializer.SerialDebug -> SD;
+#endif
+
 }