]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/iris/chips/rf230/RadioConfig.h
more deputy hacks to allow longer wait times
[tinyos-2.x.git] / tos / platforms / iris / chips / rf230 / RadioConfig.h
index 106b2b5561ed35324c29cbfdaa38f771a0b9581c..e73d3543abb3a3479a4ff4654abd25edf3104072 100644 (file)
@@ -81,12 +81,21 @@ typedef TOne TRadio;
 /**
  * The number of radio alarm ticks per one microsecond (0.9216). 
  * We use integers and no parentheses just to make deputy happy.
+ * Ok, further hacks were required for deputy, I removed 00 from the
+ * beginning and end to ba able to handle longer wait periods.
  */
-#define RADIO_ALARM_MICROSEC   (7372800UL / MHZ / 32) * (1 << MICA_DIVIDE_ONE_FOR_32KHZ_LOG2) / 1000000UL
+#define RADIO_ALARM_MICROSEC   (73728UL / MHZ / 32) * (1 << MICA_DIVIDE_ONE_FOR_32KHZ_LOG2) / 10000UL
 
 /**
  * The base two logarithm of the number of radio alarm ticks per one millisecond
  */
 #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__