[Tinyos-2-commits] CVS: tinyos-2.x/apps/tests/deluge/Blink volumes-at45db.xml, NONE, 1.1 BlinkAppC.nc, 1.1, 1.2 burn, 1.1, 1.2

Razvan Musaloiu-E. razvanm at users.sourceforge.net
Fri Jun 1 17:09:46 PDT 2007


Update of /cvsroot/tinyos/tinyos-2.x/apps/tests/deluge/Blink
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv19802/apps/tests/deluge/Blink

Modified Files:
	BlinkAppC.nc burn 
Added Files:
	volumes-at45db.xml 
Log Message:
Add support for MicaZ to Deluge T2.


--- NEW FILE: volumes-at45db.xml ---
<volume_table>
  <volume name="DELUGE0" size="65536"/>
  <volume name="DELUGE1" size="65536"/>
</volume_table>
Index: BlinkAppC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tests/deluge/Blink/BlinkAppC.nc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** BlinkAppC.nc	22 May 2007 20:34:19 -0000	1.1
--- BlinkAppC.nc	2 Jun 2007 00:09:14 -0000	1.2
***************
*** 43,47 ****
  implementation
  {
!   components MainC, BlinkC, LedsC, DelugeC;
    components new TimerMilliC() as Timer0;
  
--- 43,50 ----
  implementation
  {
!   components MainC, BlinkC, LedsC;
! #ifdef DELUGE
!   components DelugeC;
! #endif
    components new TimerMilliC() as Timer0;
  

Index: burn
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tests/deluge/Blink/burn,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** burn	22 May 2007 20:34:20 -0000	1.1
--- burn	2 Jun 2007 00:09:14 -0000	1.2
***************
*** 1,21 ****
  #!/bin/bash
  
! if [ $# -ne 1 ]; then
!   echo "Usage: $0 /dev/ttyUSB0"
    exit 2
  fi
  
  PORT=$1
  make clean
  
  echo ==================== Compile and load Blink ====================
! make telosb install bsl,$PORT
  
  echo ==================== Compile a new Blink ====================
! CFLAGS=-DBLINK_REVERSE make telosb 
  
  echo ==================== Upload the image ====================
! ../../../../tools/tinyos/misc/tos-deluge $PORT -i 0 build/telosb/tos_image.xml
  
  echo ==================== Reboot ====================
! ../../../../tools/tinyos/misc/tos-deluge $PORT -r 0 
--- 1,36 ----
  #!/bin/bash
  
! if [ $# -ne 2 ]; then
!   echo "Usage: $0 <port> <platform>"
!   echo "<port>       For example, /dev/ttyUSB0"
!   echo "<platform>   \"micaz\", \"telosb\""
!   exit 2
! fi
! 
! if [ $2 != 'micaz' -a $2 != 'telosb' ]; then
!   echo "\"$2\" is not a supported platform"
    exit 2
  fi
  
  PORT=$1
+ PLATFORM=$2
+ 
  make clean
  
  echo ==================== Compile and load Blink ====================
! if [ $PLATFORM == 'micaz' ]
! then
!   CFLAGS=-DDELUGE_BASESTATION make $PLATFORM install mib510,$PORT
! elif [ $PLATFORM == 'telosb' ]
! then
!   CFLAGS=-DDELUGE_BASESTATION make $PLATFORM install bsl,$PORT
! fi
  
  echo ==================== Compile a new Blink ====================
! CFLAGS=-DBLINK_REVERSE\ -DDELUGE_BASESTATION make $PLATFORM 
  
  echo ==================== Upload the image ====================
! ../../../../tools/tinyos/misc/tos-deluge $PORT $PLATFORM -i 0 build/$PLATFORM/tos_image.xml
  
  echo ==================== Reboot ====================
! ../../../../tools/tinyos/misc/tos-deluge $PORT $PLATFORM -r 0 



More information about the Tinyos-2-commits mailing list