X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Firis%2Fchips%2Frf230%2FHplRF230.h;h=4418ffea859a57e4039e05996ab8e213e711f31c;hb=adf1de6c009d13b7b52e68535c63b28f59c97400;hp=822d2d1dc77d4cd34d60be27956295722bb5bc3b;hpb=c200f0d798d7f9631eabfb79008615936a52b5af;p=tinyos-2.x.git diff --git a/tos/platforms/iris/chips/rf230/HplRF230.h b/tos/platforms/iris/chips/rf230/HplRF230.h index 822d2d1d..4418ffea 100644 --- a/tos/platforms/iris/chips/rf230/HplRF230.h +++ b/tos/platforms/iris/chips/rf230/HplRF230.h @@ -52,9 +52,25 @@ enum */ typedef TOne TRF230; + +/** + * The number of alarm ticks per one second (921600) + */ +#define RF230_ALARM_SEC ((7372800UL / MHZ / 32) * (1 << MICA_DIVIDE_ONE_FOR_32KHZ_LOG2)) + /** * The number of alarm ticks per one microsecond (0.9216) */ -#define RF230_ALARM_MICROSEC ((7.3728 / MHZ / 32.0) * (1 << MICA_DIVIDE_ONE_FOR_32KHZ_LOG2)) +#define RF230_ALARM_MICROSEC (RF230_ALARM_SEC / 1000000.0) + +/* This is the default value of the TX_PWR field of the PHY_TX_PWR register. */ +#ifndef RF230_DEF_RFPOWER +#define RF230_DEF_RFPOWER 0 +#endif + +/* This is the default value of the CHANNEL field of the PHY_CC_CCA register. */ +#ifndef RF230_DEF_CHANNEL +#define RF230_DEF_CHANNEL 11 +#endif #endif//__HPLRF230_H__