]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/eyesIFX/byte_radio/UartManchPhyP.nc
switch to metric MHz for SMCLK, adjust constants, include SmclkManager
[tinyos-2.x.git] / tos / platforms / eyesIFX / byte_radio / UartManchPhyP.nc
index 2294ef6a4d1eba7a13c563182d2eef010d4d51e4..0b39150e5c7797c645332f4ee96c1b058a897d06 100644 (file)
@@ -74,8 +74,8 @@ implementation
         STATE_FOOTER_DONE
     } phyState_t;
 
-#define PREAMBLE_LENGTH   4
-#define BYTE_TIME         9
+#define PREAMBLE_LENGTH   2
+#define BYTE_TIME         21
 #define PREAMBLE_BYTE     0x55
 #define SYNC_BYTE         0xFF
 #define SFD_BYTE          0x50
@@ -198,7 +198,7 @@ implementation
         atomic {
             switch(phyState) {
                 case STATE_PREAMBLE:
-                    if(preambleCount > 0) {
+                    if(preambleCount > 1) {
                         preambleCount--;
                     } else {
                         phyState = STATE_SYNC;