]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/iris/chips/rf230/RadioConfig.h
Expose the PacketTimeStamp interfaces in TimeSyncMessageC
[tinyos-2.x.git] / tos / platforms / iris / chips / rf230 / RadioConfig.h
index 6f598905da0414c0ea205dee6a49e349af96e44a..42c7e2e30c6491fd17b348c8b3e1165e8d55d703 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
@@ -84,4 +89,11 @@ typedef TOne TRadio;
  */
 #define RADIO_ALARM_MILLI_EXP  (5 + MICA_DIVIDE_ONE_FOR_32KHZ_LOG2)
 
+/**
+ * Make PACKET_LINK automaticaly enabled for Ieee154MessageC
+ */
+#if !defined(TFRAMES_ENABLED) && !defined(PACKET_LINK)
+#define PACKET_LINK
+#endif
+
 #endif//__RADIOCONFIG_H__