[Tinyos-2-commits] CVS: tinyos-2.x/tos/platforms/eyesIFX platform_message.h, 1.4, 1.5

akoepke andreaskoepke at users.sourceforge.net
Tue Jun 12 04:02:39 PDT 2007


Update of /cvsroot/tinyos/tinyos-2.x/tos/platforms/eyesIFX
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv14260

Modified Files:
	platform_message.h 
Log Message:
handle TOSH_DATA_LENGTH more gracefully


Index: platform_message.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/eyesIFX/platform_message.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** platform_message.h	12 Dec 2006 18:23:41 -0000	1.4
--- platform_message.h	12 Jun 2007 11:02:35 -0000	1.5
***************
*** 45,53 ****
  #include "tda5250_message.h"
  
! #ifdef TOSH_DATA_LENGTH
! #undef TOSH_DATA_LENGTH
! #endif
! 
  #define TOSH_DATA_LENGTH 48
  
  typedef union message_header_t {
--- 45,51 ----
  #include "tda5250_message.h"
  
! #ifndef TOSH_DATA_LENGTH
  #define TOSH_DATA_LENGTH 48
+ #endif
  
  typedef union message_header_t {
***************
*** 68,70 ****
--- 66,72 ----
  typedef tda5250_metadata_t message_radio_metadata_t;
  
+ #if TOSH_DATA_LENGTH < 33
+ #error "TOSH_DATA_LENGH must be larger than 33 bytes for this platform."
+ #endif
+ 
  #endif



More information about the Tinyos-2-commits mailing list