X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Fplatforms%2Ftelosb%2Fmac%2Ftkn154%2FTKN154_platform.h;h=fe5ae790bd1ed7e0988d49cbd049328632f44a87;hp=e129e2550377a11738d0a59d6237dd6c3c59aff0;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 diff --git a/tos/platforms/telosb/mac/tkn154/TKN154_platform.h b/tos/platforms/telosb/mac/tkn154/TKN154_platform.h index e129e255..fe5ae790 100644 --- a/tos/platforms/telosb/mac/tkn154/TKN154_platform.h +++ b/tos/platforms/telosb/mac/tkn154/TKN154_platform.h @@ -38,36 +38,26 @@ /**************************************************** * The following constants define guard times on Tmote Sky / TelosB. - * All values are in symbol time (1 symbol = 16 us) + * All values are in symbol time (1 symbol = 16 us) and assume the + * default system configuration (MCLK running at 4 MHz) */ enum { - // guard time to give up the token before actual end of CAP/CFP - IEEE154_RADIO_GUARD_TIME = 1000, + // the expected maximum time between calling a transmit() operation and + // the radio putting the first byte on the channel assuming no CSMA-CA + IEEE154_RADIO_TX_DELAY = 400, - // the expected time for a RadioTx.prepare() operation to execute (return) - IEEE154_RADIO_TX_PREPARE_DELAY = 220, + // the expected maximum time between calling a receive() operation and the + // the radio actually being put in receive mode + IEEE154_RADIO_RX_DELAY = 400, - // the *guaranteed maximum* time between calling a RadioTx.transmit() and the - // first PPDU bit being put onto the channel, assuming that RadioTx.transmit() - // is called inside an atomic block - IEEE154_RADIO_TX_SEND_DELAY = 100, - - // the expected time for a RadioRx.prepare() operation to execute (return) - IEEE154_RADIO_RX_PREPARE_DELAY = 300, - - // the *guaranteed maximum* time between calling a RadioTx.transmit() and the - // first PPDU bit being put onto the channel, assuming that RadioTx.transmit() - // is called inside an atomic block - IEEE154_RADIO_RX_DELAY = 100, - - // defines at what time the MAC payload for a beacon frame is assembled prior - // to the next scheduled beacon transmission time; must be smaller than both - // the beacon interval and IEEE154_RADIO_TX_PREPARE_DELAY + // defines at what time the MAC payload for a beacon frame is assembled before + // the next scheduled beacon transmission time; the value must be smaller than + // the beacon interval plus the time for preparing the Tx operation BEACON_PAYLOAD_UPDATE_INTERVAL = 2500, }; -typedef uint32_t ieee154_reftime_t; +typedef uint32_t ieee154_timestamp_t; #endif