[Tinyos-beta-commits] CVS: tinyos-1.x/beta/Deluge/Deluge/TOSBoot/msp430 PowerOffM.nc, 1.4, 1.5

Jonathan Hui jwhui at users.sourceforge.net
Tue Jul 12 15:10:36 PDT 2005


Update of /cvsroot/tinyos/tinyos-1.x/beta/Deluge/Deluge/TOSBoot/msp430
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1222/msp430

Modified Files:
	PowerOffM.nc 
Log Message:
- Reduced code size to 1960 bytes.



Index: PowerOffM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/Deluge/Deluge/TOSBoot/msp430/PowerOffM.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** PowerOffM.nc	18 May 2005 06:44:45 -0000	1.4
--- PowerOffM.nc	12 Jul 2005 22:10:34 -0000	1.5
***************
*** 44,48 ****
  
      uint16_t _lpmreg;
-     int i;
  
      TOSH_SET_PIN_DIRECTIONS();
--- 44,47 ----
***************
*** 50,60 ****
      call SubControl.stop();
  
!     call Leds.set(0);
!     for (i = 1536; i > 0; i -= 4) {
! 	call Leds.set(0x7);
! 	wait(i);
! 	call Leds.set(0);
! 	wait(1536-i);
!     }
  
      _lpmreg = LPM4_bits;
--- 49,53 ----
      call SubControl.stop();
  
!     call Leds.glow(0x7, 0x0);
  
      _lpmreg = LPM4_bits;



More information about the Tinyos-beta-commits mailing list