]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
choose MAC using compile definitions
authorandreaskoepke <andreaskoepke>
Tue, 8 Jul 2008 14:32:07 +0000 (14:32 +0000)
committerandreaskoepke <andreaskoepke>
Tue, 8 Jul 2008 14:32:07 +0000 (14:32 +0000)
tos/platforms/eyesIFX/RadioDataLinkC.nc

index dd90bfc2792f3cab9d467466eb25cf8be35d1484..eee306f511147347ca070eeb94b652e962452dc3 100644 (file)
@@ -49,11 +49,19 @@ 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
-        // SpeckMacDC 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
+#endif
         LinkLayerC as Llc;                       //The Link Layer Control module to use
     
     //Don't change wirings below this point, just change which components
@@ -87,6 +95,7 @@ implementation
     PacketSerializer.PhyPacketRx -> UartPhy.PhyPacketRx;
     
     UartPhy.RadioByteComm -> Radio.RadioByteComm;
-
+#ifndef RADIO_UART_VCO
     components SmclkManagerC;
+#endif
 }