]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
A dedicated basestation for Deluge T2.
authorrazvanm <razvanm>
Thu, 16 Oct 2008 19:43:20 +0000 (19:43 +0000)
committerrazvanm <razvanm>
Thu, 16 Oct 2008 19:43:20 +0000 (19:43 +0000)
apps/tests/deluge/Basestation/BasestationAppC.nc [new file with mode: 0644]
apps/tests/deluge/Basestation/Makefile [new file with mode: 0644]
apps/tests/deluge/Basestation/README.txt [new file with mode: 0644]
apps/tests/deluge/Basestation/volumes-at45db.xml [new file with mode: 0644]
apps/tests/deluge/Basestation/volumes-stm25p.xml [new file with mode: 0644]

diff --git a/apps/tests/deluge/Basestation/BasestationAppC.nc b/apps/tests/deluge/Basestation/BasestationAppC.nc
new file mode 100644 (file)
index 0000000..4571c4a
--- /dev/null
@@ -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 <cliang4@cs.jhu.edu>
+ * @author Razvan Musaloiu-E. <razvanm@cs.jhu.edu>
+ */
+
+configuration BasestationAppC {}
+
+implementation
+{
+  components DelugeC;
+}
+
diff --git a/apps/tests/deluge/Basestation/Makefile b/apps/tests/deluge/Basestation/Makefile
new file mode 100644 (file)
index 0000000..6af8922
--- /dev/null
@@ -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 (file)
index 0000000..28a9f64
--- /dev/null
@@ -0,0 +1,22 @@
+README for apps/tests/deluge/Basestation
+Author/Contact:
+
+Chieh-Jan Mike Liang <cliang4@cs.jhu.edu>
+Razvan Musaloiu-E. <razvanm@cs.jhu.edu>
+
+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 (file)
index 0000000..8b22ebe
--- /dev/null
@@ -0,0 +1,6 @@
+<volume_table>
+  <volume name="GOLDENIMAGE" size="65536" base="0" />
+  <volume name="DELUGE1" size="65536"/>
+  <volume name="DELUGE2" size="65536"/>
+  <volume name="DELUGE3" size="65536"/>
+</volume_table>
\ 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 (file)
index 0000000..4210f08
--- /dev/null
@@ -0,0 +1,6 @@
+<volume_table>
+  <volume name="GOLDENIMAGE" size="65536" base="983040" />
+  <volume name="DELUGE1" size="65536"/>
+  <volume name="DELUGE2" size="65536"/>
+  <volume name="DELUGE3" size="65536"/>
+</volume_table>
\ No newline at end of file