[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/cc2420/spi CC2420SpiP.nc, 1.2, 1.3
John Regehr
regehr at users.sourceforge.net
Mon Jun 2 21:43:05 PDT 2008
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/cc2420/receive CC2420ReceiveP.nc, 1.9, 1.10
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/cc2420/interfaces CC2420Fifo.nc, 1.1, 1.2 CC2420PacketBody.nc, 1.1, 1.2 CC2420Ram.nc, 1.1, 1.2 CC2420Receive.nc, 1.2, 1.3 CC2420Transmit.nc, 1.1, 1.2 RadioBackoff.nc, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/spi
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv26075/spi
Modified Files:
CC2420SpiP.nc
Log Message:
safe tinyos annotations
Index: CC2420SpiP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/spi/CC2420SpiP.nc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** CC2420SpiP.nc 7 Nov 2007 22:22:01 -0000 1.2
--- CC2420SpiP.nc 3 Jun 2008 04:43:03 -0000 1.3
***************
*** 263,266 ****
--- 263,268 ----
cc2420_status_t status = 0;
+ uint8_t tmpLen = len;
+ uint8_t * COUNT(tmpLen) tmpData = (uint8_t * COUNT(tmpLen))data;
atomic {
***************
*** 275,279 ****
call SpiByte.write( ( addr >> 1 ) & 0xc0 );
for ( ; len; len-- ) {
! call SpiByte.write( *data++ );
}
--- 277,281 ----
call SpiByte.write( ( addr >> 1 ) & 0xc0 );
for ( ; len; len-- ) {
! call SpiByte.write( tmpData[tmpLen-len] );
}
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/cc2420/receive CC2420ReceiveP.nc, 1.9, 1.10
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/cc2420/interfaces CC2420Fifo.nc, 1.1, 1.2 CC2420PacketBody.nc, 1.1, 1.2 CC2420Ram.nc, 1.1, 1.2 CC2420Receive.nc, 1.2, 1.3 CC2420Transmit.nc, 1.1, 1.2 RadioBackoff.nc, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-2-commits
mailing list