]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/mulle/chips/rf230/RadioConfig.h
Expose the PacketTimeStamp interfaces in TimeSyncMessageC
[tinyos-2.x.git] / tos / platforms / mulle / chips / rf230 / RadioConfig.h
index 3f5e008043736912edffcb092f85185fa9fa3c18..5ba89494059c2726dec5a3f138a0baccb6346b05 100644 (file)
@@ -86,6 +86,7 @@ enum
         */
        RF230_CCA_THRES_VALUE = 0xC7,
 };
+
 /* This is the default value of the TX_PWR field of the PHY_TX_PWR register. 0-15*/
 #ifndef RF230_DEF_RFPOWER
 #define RF230_DEF_RFPOWER      0
@@ -96,7 +97,6 @@ enum
 #define RF230_DEF_CHANNEL      11
 #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
@@ -110,14 +110,13 @@ inline uint16_t RF230_CRCBYTE_COMMAND(uint16_t crc, uint8_t data)
 
     return ((((uint16_t)data << 8) | hi8 /*hi8 (crc)*/) ^ (uint8_t)(data >> 4) 
         ^ ((uint16_t)data << 3));
-
 }
 
 /**
  * This is the timer type of the radio alarm interface
  */
-
 typedef TMicro TRadio;
+
 /**
  * The number of alarm ticks per one second
  */
@@ -130,4 +129,11 @@ typedef TMicro TRadio;
  */
 #define RADIO_ALARM_MILLI_EXP  11
 
+/**
+ * Make PACKET_LINK automaticaly enabled for Ieee154MessageC
+ */
+#if !defined(TFRAMES_ENABLED) && !defined(PACKET_LINK)
+#define PACKET_LINK
+#endif
+
 #endif  //__RADIOCONFIG_H__