[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/cc2420
CC2420ControlP.nc, 1.4, 1.5
Jonathan Hui
jwhui at users.sourceforge.net
Tue Jan 16 21:14:21 PST 2007
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv9578
Modified Files:
CC2420ControlP.nc
Log Message:
Bug fix for problem noted by David Moss. The radio does not switch
frequencies until either (i) transmitting a packet or (ii) turning off
then on receive mode. The fix is to turn off then on receive mode.
Index: CC2420ControlP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/CC2420ControlP.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** CC2420ControlP.nc 12 Dec 2006 18:23:05 -0000 1.4
--- CC2420ControlP.nc 17 Jan 2007 05:14:18 -0000 1.5
***************
*** 267,274 ****
--- 267,278 ----
call CSN.clr();
+ call SRFOFF.strobe();
call FSCTRL.write( ( 1 << CC2420_FSCTRL_LOCK_THR ) |
( ( (channel - 11)*5+357 ) << CC2420_FSCTRL_FREQ ) );
call PANID.write( 0, (uint8_t*)id, sizeof( id ) );
call CSN.set();
+ call CSN.clr();
+ call SRXON.strobe();
+ call CSN.set();
call SyncResource.release();
More information about the Tinyos-2-commits
mailing list