[Tinyos-beta-commits] CVS: tinyos-1.x/beta/SystemCore/Drip Drip.h, 1.7, 1.8 DripM.nc, 1.21, 1.22

Gilman Tolle gtolle at users.sourceforge.net
Thu Oct 14 21:54:21 PDT 2004


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

Modified Files:
	Drip.h DripM.nc 
Log Message:
Decreased minimum Drip speed

Index: Drip.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/SystemCore/Drip/Drip.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Drip.h	10 Sep 2004 20:31:32 -0000	1.7
--- Drip.h	15 Oct 2004 04:54:19 -0000	1.8
***************
*** 55,65 ****
  } DripMetadata;
  
  enum {
    MAX_DATA_SIZE = (TOSH_DATA_LENGTH - sizeof(DripMetadata)),
  };
  
  typedef struct DripMsg {
    DripMetadata metadata;
!   uint8_t      data[MAX_DATA_SIZE];
  } DripMsg;
  
--- 55,67 ----
  } DripMetadata;
  
+ /*
  enum {
    MAX_DATA_SIZE = (TOSH_DATA_LENGTH - sizeof(DripMetadata)),
  };
+ */
  
  typedef struct DripMsg {
    DripMetadata metadata;
!   uint8_t      data[0];
  } DripMsg;
  

Index: DripM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/SystemCore/Drip/DripM.nc,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** DripM.nc	21 Sep 2004 03:57:53 -0000	1.21
--- DripM.nc	15 Oct 2004 04:54:19 -0000	1.22
***************
*** 88,92 ****
    enum {
      DRIP_CACHE_ENTRIES = uniqueCount("Drip"),
!     TIMER_PERIOD = 1024,
      MIN_SEND_INTERVAL = 0,
      MAX_SEND_INTERVAL = 10,
--- 88,92 ----
    enum {
      DRIP_CACHE_ENTRIES = uniqueCount("Drip"),
!     TIMER_PERIOD = 100,
      MIN_SEND_INTERVAL = 0,
      MAX_SEND_INTERVAL = 10,
***************
*** 363,366 ****
--- 363,368 ----
      dbg(DBG_USR1, "Received msg(id=%d, seqno=%d)\n",
  	dripMsg->metadata.id, dripMsg->metadata.seqno);
+ 
+     //    call Leds.yellowToggle();
      
      if (dripStarted == FALSE && dripMsg->metadata.id != DRIP_WAKEUPID)



More information about the Tinyos-beta-commits mailing list