X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Fmulle%2Fchips%2Frf230%2FRadioConfig.h;h=5ba89494059c2726dec5a3f138a0baccb6346b05;hb=cf17a36229c58579dd04718b4f4d0db83f90909b;hp=3f5e008043736912edffcb092f85185fa9fa3c18;hpb=327ace966d6e087bdc24da77429af6cdbd708bf1;p=tinyos-2.x.git diff --git a/tos/platforms/mulle/chips/rf230/RadioConfig.h b/tos/platforms/mulle/chips/rf230/RadioConfig.h index 3f5e0080..5ba89494 100644 --- a/tos/platforms/mulle/chips/rf230/RadioConfig.h +++ b/tos/platforms/mulle/chips/rf230/RadioConfig.h @@ -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__