]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
allow HW ACK for time sync messages if RF230_HARDWARE_ACK is defined
authormmaroti <mmaroti>
Mon, 7 Dec 2009 16:52:36 +0000 (16:52 +0000)
committermmaroti <mmaroti>
Mon, 7 Dec 2009 16:52:36 +0000 (16:52 +0000)
tos/chips/rf2xx/rf230/RF230TimeSyncMessageC.nc

index 6e18b2445a79714539409253135f7b8895f2ee16..548e658b3e5e8e7c6e3093d047c7bbd711a91ac3 100644 (file)
@@ -46,7 +46,7 @@ configuration RF230TimeSyncMessageC
 
 implementation
 {
-       components RF230DriverLayerC, RF230ActiveMessageC, TimeSyncMessageLayerC;
+       components RF230ActiveMessageC, TimeSyncMessageLayerC;
   
        SplitControl    = RF230ActiveMessageC;
        AMPacket        = TimeSyncMessageLayerC;
@@ -65,6 +65,11 @@ implementation
        TimeSyncMessageLayerC.PacketTimeStampRadio -> RF230ActiveMessageC;
        TimeSyncMessageLayerC.PacketTimeStampMilli -> RF230ActiveMessageC;
 
+#ifdef RF230_HARDWARE_ACK
+       components RF230DriverHwAckC as RF230DriverLayerC;
+#else
+       components RF230DriverLayerC;
+#endif
        TimeSyncMessageLayerC.LocalTimeRadio -> RF230DriverLayerC;
        TimeSyncMessageLayerC.PacketTimeSyncOffset -> RF230DriverLayerC.PacketTimeSyncOffset;
 }