[Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/printf PrintfC.nc, 1.9, 1.10 printf.h, 1.10, 1.11

Kevin Klues klueska at users.sourceforge.net
Tue Jul 22 18:46:45 PDT 2008


Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/printf
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv13879

Modified Files:
	PrintfC.nc printf.h 
Log Message:
Force printf messages to 28 bytes regardless of what TOSH_DATA_LENGTH is set to

Index: PrintfC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/printf/PrintfC.nc,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** PrintfC.nc	12 Jun 2008 12:57:31 -0000	1.9
--- PrintfC.nc	23 Jul 2008 01:46:43 -0000	1.10
***************
*** 64,68 ****
    PrintfP.AMSend -> SerialAMSenderC;
    PrintfP.Packet -> SerialAMSenderC;
!   PrintfP.Leds -> LedsC;
  }
  
--- 64,68 ----
    PrintfP.AMSend -> SerialAMSenderC;
    PrintfP.Packet -> SerialAMSenderC;
!   //PrintfP.Leds -> LedsC;
  }
  

Index: printf.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/printf/printf.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** printf.h	17 Jun 2008 19:11:01 -0000	1.10
--- printf.h	23 Jul 2008 01:46:43 -0000	1.11
***************
*** 52,57 ****
  int printfflush();
  
  typedef nx_struct printf_msg {
!   nx_uint8_t buffer[TOSH_DATA_LENGTH];
  } printf_msg_t;
  
--- 52,58 ----
  int printfflush();
  
+ #define PRINTF_MSG_LENGTH	28
  typedef nx_struct printf_msg {
!   nx_uint8_t buffer[PRINTF_MSG_LENGTH];
  } printf_msg_t;
  



More information about the Tinyos-2-commits mailing list