[Tinyos-beta-commits] CVS: tinyos-1.x/beta/TinierDB TimeStamp.h, 1.2, 1.3 TimeSyncM.nc, 1.3, 1.4

Stan Rost stanrost at users.sourceforge.net
Mon Sep 20 09:46:05 PDT 2004


Update of /cvsroot/tinyos/tinyos-1.x/beta/TinierDB
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11186

Modified Files:
	TimeStamp.h TimeSyncM.nc 
Log Message:
- Added functions for covnerting timestamps into uint64_ts
- Small debugging changes to TestTimeSync



Index: TimeStamp.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/TinierDB/TimeStamp.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** TimeStamp.h	14 Sep 2004 17:44:48 -0000	1.2
--- TimeStamp.h	20 Sep 2004 16:46:01 -0000	1.3
***************
*** 6,9 ****
--- 6,13 ----
  typedef uint8_t TimeStamp[5];
  
+ void timeStampPrint(TimeStamp t) {
+   dbg(DBG_USR1, "%u.%u\n", t[0], *(uint32_t *)(&t[1]));
+ }
+ 
  tos_time_t timeStamp2tos(TimeStamp t) {
    tos_time_t result;

Index: TimeSyncM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/TinierDB/TimeSyncM.nc,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TimeSyncM.nc	27 Aug 2004 20:55:11 -0000	1.3
--- TimeSyncM.nc	20 Sep 2004 16:46:01 -0000	1.4
***************
*** 99,108 ****
      call Leds.yellowOn();
  
!     call PowerArbiter.useResource(PWR_RADIO);
    }
  
    void powerOff() {
      call Leds.yellowOff();
!     call PowerArbiter.releaseResource(PWR_RADIO);
    }
  
--- 99,108 ----
      call Leds.yellowOn();
  
!     //    call PowerArbiter.useResource(PWR_RADIO);
    }
  
    void powerOff() {
      call Leds.yellowOff();
!     //    call PowerArbiter.releaseResource(PWR_RADIO);
    }
  
***************
*** 226,230 ****
  	
  	dbg(DBG_USR1, 
! 	    "TS: AUTHORITATIVE\n");
  	
  	dbg(DBG_USR1, 
--- 226,231 ----
  	
  	dbg(DBG_USR1, 
! 	    "TS: AUTHORITATIVE\n"
! 	    );
  	
  	dbg(DBG_USR1, 



More information about the Tinyos-beta-commits mailing list