[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/rf2xx/rf212 RF212ActiveMessageP.nc, 1.8, 1.9

Miklos Maroti mmaroti at users.sourceforge.net
Fri May 8 09:44:17 PDT 2009


Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/rf2xx/rf212
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv2654/rf212

Modified Files:
	RF212ActiveMessageP.nc 
Log Message:
make the software ack timeout configurable

Index: RF212ActiveMessageP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/rf2xx/rf212/RF212ActiveMessageP.nc,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** RF212ActiveMessageP.nc	10 Apr 2009 08:33:20 -0000	1.8
--- RF212ActiveMessageP.nc	8 May 2009 16:44:15 -0000	1.9
***************
*** 119,125 ****
  	}
  
  	async command uint16_t SoftwareAckConfig.getAckTimeout()
  	{
! 		return (uint16_t)(800 * RADIO_ALARM_MICROSEC);
  	}
  
--- 119,129 ----
  	}
  
+ #ifndef SOFTWAREACK_TIMEOUT
+ #define SOFTWAREACK_TIMEOUT	1000
+ #endif
+ 
  	async command uint16_t SoftwareAckConfig.getAckTimeout()
  	{
! 		return (uint16_t)(SOFTWAREACK_TIMEOUT * RADIO_ALARM_MICROSEC);
  	}
  



More information about the Tinyos-2-commits mailing list