[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/cc2420/receive CC2420ReceiveP.nc, 1.2, 1.3

dmm rincon at users.sourceforge.net
Thu Sep 6 12:20:21 PDT 2007


Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/receive
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv22868

Modified Files:
	CC2420ReceiveP.nc 
Log Message:
Software acknowledge broadcast packets like hardware does.

Index: CC2420ReceiveP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/receive/CC2420ReceiveP.nc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** CC2420ReceiveP.nc	6 Jul 2007 18:09:44 -0000	1.2
--- CC2420ReceiveP.nc	6 Sep 2007 19:20:18 -0000	1.3
***************
*** 262,266 ****
        if(call CC2420Config.isAutoAckEnabled() && !call CC2420Config.isHwAutoAckDefault()) {
          if (((( header->fcf >> IEEE154_FCF_ACK_REQ ) & 0x01) == 1)
!             && (header->dest == call CC2420Config.getShortAddr())
              && ((( header->fcf >> IEEE154_FCF_FRAME_TYPE ) & 7) == IEEE154_TYPE_DATA)) {
            // CSn flippage cuts off our FIFO; SACK and begin reading again
--- 262,267 ----
        if(call CC2420Config.isAutoAckEnabled() && !call CC2420Config.isHwAutoAckDefault()) {
          if (((( header->fcf >> IEEE154_FCF_ACK_REQ ) & 0x01) == 1)
!             && ((header->dest == call CC2420Config.getShortAddr())
!                 || (header->dest == AM_BROADCAST_ADDR))
              && ((( header->fcf >> IEEE154_FCF_FRAME_TYPE ) & 7) == IEEE154_TYPE_DATA)) {
            // CSn flippage cuts off our FIFO; SACK and begin reading again



More information about the Tinyos-2-commits mailing list