]> oss.titaniummirror.com Git - tinyos-2.x.git/commit
Comply with semantics described in TEP, use HilTimerMilli as base for LocalTime in...
authorandreaskoepke <andreaskoepke>
Thu, 10 Jul 2008 12:47:44 +0000 (12:47 +0000)
committerandreaskoepke <andreaskoepke>
Thu, 10 Jul 2008 12:47:44 +0000 (12:47 +0000)
commitca64db983a848b5fbcb38705547f547b26c8e435
treee683501aaaee4a384fe057af3f8c6ef787bbe479
parent9092b3c0aa9215dff07b3465a88eb706e3e2193f
Comply with semantics described in TEP, use HilTimerMilli as base for LocalTime in milli seconds.

TestFtsp works, however FTSP relies on the assumption that
message_t.data = call Send.getPayload (just like BaseStation)
but this is not true for RedMac/SpeckMacD on an eyesIFX node.

After suitable modification of TimeSyncP (replace
TimeSyncMsg* msg = (TimeSyncMsg*)(processedMsg->data);
with
TimeSyncMsg* msg = (TimeSyncMsg*)(call Send.getPayload(processedMsg, sizeof(TimeSyncMsg)));
it works.
tos/platforms/eyesIFX/LocalTimeC.nc
tos/platforms/eyesIFX/LocalTimeP.nc
tos/platforms/eyesIFX/PacketStampC.nc
tos/platforms/eyesIFX/PacketStampP.nc
tos/platforms/eyesIFX/TimeSyncMessageC.nc
tos/platforms/eyesIFX/TimeSyncMessageP.nc