[Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/timer AlarmToTimerC.nc, 1.2, 1.3

David Gay idgay at users.sourceforge.net
Fri Aug 11 14:02:31 PDT 2006


Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/timer
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv22208

Modified Files:
	AlarmToTimerC.nc 
Log Message:
m_t0 can be recovered from underlying alarm and m_dt


Index: AlarmToTimerC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/timer/AlarmToTimerC.nc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** AlarmToTimerC.nc	12 Jul 2006 17:02:30 -0000	1.2
--- AlarmToTimerC.nc	11 Aug 2006 21:02:29 -0000	1.3
***************
*** 42,46 ****
    // there might be ways to save bytes here, but I'll do it in the obviously
    // right way for now
-   uint32_t m_t0;
    uint32_t m_dt;
    bool m_oneshot;
--- 42,45 ----
***************
*** 48,52 ****
    void start(uint32_t t0, uint32_t dt, bool oneshot)
    {
-     m_t0 = t0;
      m_dt = dt;
      m_oneshot = oneshot;
--- 47,50 ----
***************
*** 89,93 ****
  
    command uint32_t Timer.gett0()
!   { return m_t0; }
  
    command uint32_t Timer.getdt()
--- 87,91 ----
  
    command uint32_t Timer.gett0()
!   { return call Alarm.getAlarm() - m_dt; }
  
    command uint32_t Timer.getdt()



More information about the Tinyos-2-commits mailing list