[Tinyos-2-commits] CVS: tinyos-2.x/tos/platforms/telosb/mac/tkn154 platform_message.h, 1.3, 1.4

Jan-Hinrich Hauer janhauer at users.sourceforge.net
Tue Apr 7 08:40:15 PDT 2009


Update of /cvsroot/tinyos/tinyos-2.x/tos/platforms/telosb/mac/tkn154
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv13242/tos/platforms/telosb/mac/tkn154

Modified Files:
	platform_message.h 
Log Message:
Removed some unused code

Index: platform_message.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/telosb/mac/tkn154/platform_message.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** platform_message.h	24 Mar 2009 12:56:47 -0000	1.3
--- platform_message.h	7 Apr 2009 15:40:13 -0000	1.4
***************
*** 7,31 ****
  #include <Serial.h>
  
! #ifndef IEEE154_OLD_INTERFACES
  #include <TKN154_MAC.h>
- #else
- typedef struct {
-   uint8_t control;  // stores length (lower 7 bits), top bit -> promiscuous mode
-   uint8_t mhr[MHR_MAX_LEN];  // maximum header size without security
- } ieee154_header_t;
- 
- typedef struct {
-   uint8_t rssi;
-   uint8_t linkQuality;
-   uint32_t timestamp;
- } ieee154_metadata_t;
- #endif
  
! //#ifdef TOSH_DATA_LENGTH
! //#undef TOSH_DATA_LENGTH
! //#endif
! // TOSH_DATA_LENGTH may be smaller than 118, but then we'll
! // not be able to receive/send all IEEE 802.15.4 packets 
! #define TOSH_DATA_LENGTH 118
  
  typedef union message_header {
--- 7,15 ----
  #include <Serial.h>
  
! /* The following include pulls in the ieee154_header_t/ieee154_metadata_t definitions */
  #include <TKN154_MAC.h>
  
! /* TOSH_DATA_LENGTH should be the maximum length of the MAC payload */
! #define TOSH_DATA_LENGTH IEEE154_aMaxMACPayloadSize
  
  typedef union message_header {



More information about the Tinyos-2-commits mailing list