[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/cc1000_lpl CC1000ActiveMessageP.nc, 1.4, 1.5

Phil Levis scipio at users.sourceforge.net
Wed Jun 20 16:49:04 PDT 2007


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

Modified Files:
	CC1000ActiveMessageP.nc 
Log Message:
Added AM group.


Index: CC1000ActiveMessageP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/cc1000_lpl/CC1000ActiveMessageP.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** CC1000ActiveMessageP.nc	12 Dec 2006 18:23:05 -0000	1.4
--- CC1000ActiveMessageP.nc	20 Jun 2007 23:49:02 -0000	1.5
***************
*** 148,156 ****
      header->type = type;
    }
!   
!   //command am_group_t AMPacket.group(message_t* amsg) {
!   //  return amsg->header.group;
!   //}
!   
   default event message_t* Receive.receive[am_id_t id](message_t* msg, void* payload, uint8_t len) {
      return msg;
--- 148,166 ----
      header->type = type;
    }
! 
!   command void AMPacket.setGroup(message_t* msg, am_group_t group) {
!     cc1000_header_t* header = getHeader(msg);
!     header->group = group;
!   }
! 
!   command am_group_t AMPacket.group(message_t* msg) {
!     cc1000_header_t* header = getHeader(msg);
!     return header->group;
!   }
! 
!   command am_group_t AMPacket.localGroup() {
!     return TOS_AM_GROUP;
!   }
! 
   default event message_t* Receive.receive[am_id_t id](message_t* msg, void* payload, uint8_t len) {
      return msg;



More information about the Tinyos-2-commits mailing list