From: mmaroti Date: Mon, 7 Dec 2009 16:52:36 +0000 (+0000) Subject: allow HW ACK for time sync messages if RF230_HARDWARE_ACK is defined X-Git-Tag: rc_6_tinyos_2_1_1~106 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=667572a9a1e355ae5891b87c40b91ed5c4d3ac03 allow HW ACK for time sync messages if RF230_HARDWARE_ACK is defined --- diff --git a/tos/chips/rf2xx/rf230/RF230TimeSyncMessageC.nc b/tos/chips/rf2xx/rf230/RF230TimeSyncMessageC.nc index 6e18b244..548e658b 100644 --- a/tos/chips/rf2xx/rf230/RF230TimeSyncMessageC.nc +++ b/tos/chips/rf2xx/rf230/RF230TimeSyncMessageC.nc @@ -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; }