From: razvanm Date: Thu, 16 Oct 2008 19:43:20 +0000 (+0000) Subject: A dedicated basestation for Deluge T2. X-Git-Tag: rc_6_tinyos_2_1_1~590 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=4e123af010077900246c741bb14231338d98f450 A dedicated basestation for Deluge T2. --- diff --git a/apps/tests/deluge/Basestation/BasestationAppC.nc b/apps/tests/deluge/Basestation/BasestationAppC.nc new file mode 100644 index 00000000..4571c4a6 --- /dev/null +++ b/apps/tests/deluge/Basestation/BasestationAppC.nc @@ -0,0 +1,33 @@ +/* Copyright (c) 2007 Johns Hopkins University. +* All rights reserved. +* +* Permission to use, copy, modify, and distribute this software and its +* documentation for any purpose, without fee, and without written +* agreement is hereby granted, provided that the above copyright +* notice, the (updated) modification history and the author appear in +* all copies of this source code. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS' +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS +* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, LOSS OF USE, DATA, +* OR PROFITS) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF +* THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/** + * @author Chieh-Jan Mike Liang + * @author Razvan Musaloiu-E. + */ + +configuration BasestationAppC {} + +implementation +{ + components DelugeC; +} + diff --git a/apps/tests/deluge/Basestation/Makefile b/apps/tests/deluge/Basestation/Makefile new file mode 100644 index 00000000..6af89227 --- /dev/null +++ b/apps/tests/deluge/Basestation/Makefile @@ -0,0 +1,6 @@ +COMPONENT=BasestationAppC +BOOTLOADER=tosboot + +CFLAGS += -DDELUGE_BASESTATION + +include $(MAKERULES) diff --git a/apps/tests/deluge/Basestation/README.txt b/apps/tests/deluge/Basestation/README.txt new file mode 100644 index 00000000..28a9f643 --- /dev/null +++ b/apps/tests/deluge/Basestation/README.txt @@ -0,0 +1,22 @@ +README for apps/tests/deluge/Basestation +Author/Contact: + +Chieh-Jan Mike Liang +Razvan Musaloiu-E. + +Description: + +This is a sample application for Deluge T2. The application is similar +with GoldenImage, but it includes the basestation behavior by using +the CFLAGS=-DDELUGE_BASESTATION flag. + +For telosb the command to install the program is like this: + make telosb install bsl,/dev/ttyUSB0 + +Prerequisites: + +Python 2.4 with pySerial + +References: + +The Deluge T2 wiki page from http://docs.tinyos.net/ diff --git a/apps/tests/deluge/Basestation/volumes-at45db.xml b/apps/tests/deluge/Basestation/volumes-at45db.xml new file mode 100644 index 00000000..8b22ebe4 --- /dev/null +++ b/apps/tests/deluge/Basestation/volumes-at45db.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/apps/tests/deluge/Basestation/volumes-stm25p.xml b/apps/tests/deluge/Basestation/volumes-stm25p.xml new file mode 100644 index 00000000..4210f08a --- /dev/null +++ b/apps/tests/deluge/Basestation/volumes-stm25p.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file