]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Added a note to README that MAC interface naming deviates from TEP3 recommended pract...
authorjanhauer <janhauer>
Thu, 24 Jul 2008 11:06:23 +0000 (11:06 +0000)
committerjanhauer <janhauer>
Thu, 24 Jul 2008 11:06:23 +0000 (11:06 +0000)
apps/tests/tkn154/README.txt
tos/lib/mac/tkn154/BeaconSynchronizeP.nc
tos/lib/mac/tkn154/README.txt

index a515e9ae3003fd20119f59eb53b4e3c2dd2220da..eb9457979499171f22af3bffd70123542ecff9db 100644 (file)
@@ -9,6 +9,10 @@ separate subdirectory which includes a README.txt describing what it does and
 how it can be installed, respectively.
 
 The TKN15.4 implementation can be found in tinyos-2.x/tos/lib/mac/tkn154.
+Note: TEP3 recommends that interface names "should be mixed case, starting
+upper case". To match the syntax used in the IEEE 802.15.4 standard the
+interfaces provided by the MAC to the next higher layer deviate from this
+convention (they are all caps, e.g. MLME_START).
 
 $Id$o
 
index 29de02739e3f2d056cf39c0b5dad2daae05ae3ce..e7c39110a2a2f6cba0bc48281ddebd4e3dd0b6f9 100644 (file)
@@ -346,7 +346,7 @@ implementation
       call Debug.log(LEVEL_INFO, SyncP_BEACON_RX, m_lastBeaconRxTime, timestamp, mhr[2]);
       m_numGtsSlots = (payload[2] & 7);
       gtsFieldLength = 1 + ((m_numGtsSlots > 0) ? 1 + m_numGtsSlots * 3: 0);
-      m_lastBeaconRxTime = timestamp + IEEE154_SYNC_SYMBOL_OFFSET - IEEE154_SYMBOLS_PER_OCTET - IEEE154_PREAMBLE_LENGTH;
+      m_lastBeaconRxTime = timestamp;
       m_finalCapSlot = (payload[1] & 0x0F);
       m_sfSlotDuration = (((uint32_t) 1) << ((payload[0] & 0xF0) >> 4)) * IEEE154_aBaseSlotDuration;
       memcpy(m_gtsField, &payload[2], gtsFieldLength);
index c94d0190bfcc5139cf59f98c17b22df01a1ec716..e9b4bd3eada666177d43854da421047b5f87d882 100644 (file)
@@ -18,7 +18,7 @@ missing functionality:
 
 missing documentation:
 - overview on the architecture of TKN15.4
-- porting TKN15.4 to a new platform
+- guidance on porting TKN15.4 to a new platform
 - ...
 
 Implementation 
@@ -30,6 +30,11 @@ CC2420 driver: tinyos-2.x/tos/chips/cc2420_tkn154
 TelosB "platform glue" code: tinyos-2.x/tos/platforms/telosb/mac/tkn154
 Example applications: tinyos-2.x/apps/tests/tkn154
 
+Note: TEP3 recommends that interface names "should be mixed case, starting
+upper case". To match the syntax used in the IEEE 802.15.4 standard the
+interfaces provided by the MAC to the next higher layer deviate from this
+convention (they are all caps, e.g. MLME_START).
+
 Copyright
 ---------