[Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/ftsp TimeSyncC.nc, 1.1, 1.2 TimeSyncP.nc, 1.7, 1.8
kusy
kusy at users.sourceforge.net
Wed Jul 15 23:49:49 PDT 2009
Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/ftsp
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv16881/lib/ftsp
Modified Files:
TimeSyncC.nc TimeSyncP.nc
Log Message:
LPL patch by thomas schmidt
Index: TimeSyncC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/ftsp/TimeSyncC.nc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TimeSyncC.nc 10 Jun 2008 22:16:13 -0000 1.1
--- TimeSyncC.nc 16 Jul 2009 06:49:47 -0000 1.2
***************
*** 70,72 ****
--- 70,77 ----
TimeSyncP.Leds -> LedsC;
+ #ifdef LOW_POWER_LISTENING
+ components CC2420ActiveMessageC;
+ TimeSyncP.LowPowerListening -> CC2420ActiveMessageC;
+ #endif
+
}
Index: TimeSyncP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/ftsp/TimeSyncP.nc,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** TimeSyncP.nc 10 Apr 2009 21:39:50 -0000 1.7
--- TimeSyncP.nc 16 Jul 2009 06:49:47 -0000 1.8
***************
*** 47,50 ****
--- 47,56 ----
interface TimeSyncPacket<precision_tag,uint32_t>;
interface LocalTime<precision_tag> as LocalTime;
+
+
+ #ifdef LOW_POWER_LISTENING
+ interface LowPowerListening;
+ #endif
+
}
}
***************
*** 62,66 ****
ENTRY_VALID_LIMIT = 4, // number of entries to become synchronized
ENTRY_SEND_LIMIT = 3, // number of entries to send sync messages
! ENTRY_THROWOUT_LIMIT = 100, // if time sync error is bigger than this clear the table
};
--- 68,72 ----
ENTRY_VALID_LIMIT = 4, // number of entries to become synchronized
ENTRY_SEND_LIMIT = 3, // number of entries to send sync messages
! ENTRY_THROWOUT_LIMIT = 500, // if time sync error is bigger than this clear the table
};
***************
*** 354,357 ****
--- 360,366 ----
outgoingMsg->globalTime = globalTime;
+ #ifdef LOW_POWER_LISTENING
+ call LowPowerListening.setRxSleepInterval(&outgoingMsgBuffer, LPL_INTERVAL);
+ #endif
// we don't send time sync msg, if we don't have enough data
if( numEntries < ENTRY_SEND_LIMIT && outgoingMsg->rootID != TOS_NODE_ID ){
More information about the Tinyos-2-commits
mailing list