[Tinyos-beta-commits]
CVS: tinyos-1.x/beta/Deluge/Deluge/TOSBoot/msp430
PowerOffM.nc, 1.2, 1.3 hardware.h, 1.3, 1.4
Jonathan Hui
jwhui at users.sourceforge.net
Tue May 17 19:55:25 PDT 2005
- Previous message: [Tinyos-beta-commits]
CVS: tinyos-1.x/beta/Deluge/Deluge/TOSBoot/build/telosb
app.c, 1.7, 1.8 ident_flags.txt, 1.7, 1.8 main.exe, 1.7,
1.8 main.ihex, 1.7, 1.8
- Next message: [Tinyos-beta-commits]
CVS: tinyos-1.x/beta/Deluge/Deluge/TOSBoot/msp430
PowerOffM.nc, 1.3, 1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-1.x/beta/Deluge/Deluge/TOSBoot/msp430
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23355/msp430
Modified Files:
PowerOffM.nc hardware.h
Log Message:
- TOSBoot waits a short period before sampling the user interrupt pin
since it takes a while to stabilize.
- TOSH_uwait replaced with for loops, reducing code size by nearly 100
bytes.
Index: PowerOffM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/Deluge/Deluge/TOSBoot/msp430/PowerOffM.nc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** PowerOffM.nc 2 May 2005 05:37:18 -0000 1.2
--- PowerOffM.nc 18 May 2005 02:55:23 -0000 1.3
***************
*** 51,59 ****
call Leds.set(0);
! for (i = 1024; i > 0; i=i-4) {
call Leds.set(0x7);
! TOSH_uwait(i);
call Leds.set(0);
! TOSH_uwait(1024-i);
}
--- 51,59 ----
call Leds.set(0);
! for (i = 1536; i > 0; i -= 4) {
call Leds.set(0x7);
! wait(i);
call Leds.set(0);
! wait(1536-i);
}
Index: hardware.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/Deluge/Deluge/TOSBoot/msp430/hardware.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** hardware.h 17 May 2005 20:48:24 -0000 1.3
--- hardware.h 18 May 2005 02:55:23 -0000 1.4
***************
*** 4,7 ****
--- 4,11 ----
#include "msp430hardware.h"
+ void wait(uint16_t t) {
+ for ( ; t > 0; t-- );
+ }
+
// LEDs
TOSH_ASSIGN_PIN(RED_LED, 5, 4);
- Previous message: [Tinyos-beta-commits]
CVS: tinyos-1.x/beta/Deluge/Deluge/TOSBoot/build/telosb
app.c, 1.7, 1.8 ident_flags.txt, 1.7, 1.8 main.exe, 1.7,
1.8 main.ihex, 1.7, 1.8
- Next message: [Tinyos-beta-commits]
CVS: tinyos-1.x/beta/Deluge/Deluge/TOSBoot/msp430
PowerOffM.nc, 1.3, 1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-beta-commits
mailing list