From 7e8b2dc4c75215f91edd03b523c7b411b3744e17 Mon Sep 17 00:00:00 2001 From: andreaskoepke Date: Tue, 8 Jul 2008 14:32:07 +0000 Subject: [PATCH] choose MAC using compile definitions --- tos/platforms/eyesIFX/RadioDataLinkC.nc | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/tos/platforms/eyesIFX/RadioDataLinkC.nc b/tos/platforms/eyesIFX/RadioDataLinkC.nc index dd90bfc2..eee306f5 100644 --- a/tos/platforms/eyesIFX/RadioDataLinkC.nc +++ b/tos/platforms/eyesIFX/RadioDataLinkC.nc @@ -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 } -- 2.39.2