]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/eyesIFX/RadioDataLinkC.nc
choose MAC using compile definitions
[tinyos-2.x.git] / tos / platforms / eyesIFX / RadioDataLinkC.nc
index ae0a096b1ff76927a4be542ec6e740e83c904ece..eee306f511147347ca070eeb94b652e962452dc3 100644 (file)
@@ -49,12 +49,20 @@ implementation
     components 
         //Change components below as desired
         Tda5250RadioC as Radio,                  //The actual Tda5250 radio over which data is receives/transmitted
+#ifdef PHY_MANCHESTER
+        UartManchPhyC as UartPhy,
+#else
         Uart4b6bPhyC as UartPhy,                 //The UartPhy turns Bits into Bytes
+#endif
         PacketSerializerP  as PacketSerializer,  //The PacketSerializer turns Bytes into Packets
-        // RedMacC as Mac,                         //The MAC protocol to use
+#ifdef MAC_REDMAC
+        RedMacC as Mac,                         //The MAC protocol to use
+#elif  defined(MAC_SPECKMACD)   
+        SpeckMacDC as Mac,                         //The MAC protocol to use
+#else
         CsmaMacC as Mac,                         //The MAC protocol to use
-        
-            LinkLayerC as Llc;                       //The Link Layer Control module to use
+#endif
+        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             
@@ -87,4 +95,7 @@ implementation
     PacketSerializer.PhyPacketRx -> UartPhy.PhyPacketRx;
     
     UartPhy.RadioByteComm -> Radio.RadioByteComm;
+#ifndef RADIO_UART_VCO
+    components SmclkManagerC;
+#endif
 }