[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/cc2420/packet CC2420PacketP.nc, 1.3, 1.4
kusy
kusy at users.sourceforge.net
Wed Aug 13 00:37:07 PDT 2008
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tools/release/external-tools avarice.spec, NONE, 1.1 avr-gcc.spec, NONE, 1.1 avr-insight.spec, NONE, 1.1 binutils.spec, NONE, 1.1 msp430-libc.spec, NONE, 1.1 xscale-elf.gcc.spec, NONE, 1.1
- Next message: [Tinyos-2-commits] [Tinyos-help] errors in installation TinyOs 2.0.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/packet
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv14318
Modified Files:
CC2420PacketP.nc
Log Message:
Fixing T32khz to TMilli conversion - coeficient 32 needs to be changed to 28.1.
Index: CC2420PacketP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketP.nc,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** CC2420PacketP.nc 13 Jul 2008 03:26:02 -0000 1.3
--- CC2420PacketP.nc 13 Aug 2008 07:37:05 -0000 1.4
***************
*** 139,146 ****
}
async command uint32_t PacketTimeStampMilli.timestamp(message_t* msg)
{
! int32_t offset = call PacketTimeStamp32khz.timestamp(msg) - call LocalTime32khz.get();
! return (offset >> 5) + call LocalTimeMilli.get();
}
--- 139,149 ----
}
+ //timestmap is always represented in 32khz
+ //28.1 is coefficient difference between T32khz and TMilli on MicaZ
async command uint32_t PacketTimeStampMilli.timestamp(message_t* msg)
{
! int32_t offset = (call LocalTime32khz.get()-call PacketTimeStamp32khz.timestamp(msg));
! offset/=28.1;
! return call LocalTimeMilli.get() - offset;
}
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tools/release/external-tools avarice.spec, NONE, 1.1 avr-gcc.spec, NONE, 1.1 avr-insight.spec, NONE, 1.1 binutils.spec, NONE, 1.1 msp430-libc.spec, NONE, 1.1 xscale-elf.gcc.spec, NONE, 1.1
- Next message: [Tinyos-2-commits] [Tinyos-help] errors in installation TinyOs 2.0.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-2-commits
mailing list