]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/iris/chips/rf230/RadioConfig.h
make the software ack timeout configurable
[tinyos-2.x.git] / tos / platforms / iris / chips / rf230 / RadioConfig.h
index 6f598905da0414c0ea205dee6a49e349af96e44a..106b2b5561ed35324c29cbfdaa38f771a0b9581c 100644 (file)
@@ -25,7 +25,7 @@
 #define __RADIOCONFIG_H__
 
 #include <MicaTimer.h>
-#include <RF230.h>
+#include <RF230DriverLayer.h>
 #include <util/crc16.h>
 
 enum
@@ -59,6 +59,11 @@ enum
 #define RF230_DEF_CHANNEL      11
 #endif
 
+/* The number of microseconds a sending IRIS mote will wait for an acknowledgement */
+#ifndef SOFTWAREACK_TIMEOUT
+#define SOFTWAREACK_TIMEOUT    800
+#endif
+
 /*
  * This is the command used to calculate the CRC for the RF230 chip. 
  * TODO: Check why the default crcByte implementation is in a different endianness