]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Add tosthread_join support to TinyLD
authorliang_mike <liang_mike>
Wed, 4 Feb 2009 20:10:11 +0000 (20:10 +0000)
committerliang_mike <liang_mike>
Wed, 4 Feb 2009 20:10:11 +0000 (20:10 +0000)
Fix a typo in README

apps/tosthreads/tinyld/LoadFromRAM/README
apps/tosthreads/tinyld/SerialLoader/README
tools/tinyos/tosthreads/tosthreads-gen-dynamic-app
tools/tinyos/tosthreads/tosthreads_standard_api.py
tools/tinyos/tosthreads/tosthreads_tenet_api.py
tos/lib/tosthreads/lib/tinyld/tosthread_slcs_types.h

index cda23b74c071150953c70f876806eca694f94904..b0adfb58361746813ca51a0ab53282b9e733bdb4 100644 (file)
@@ -8,4 +8,4 @@ programs hardcoded in the byte arrays; One program is Blink, and the
 other one is Basestation.
 
 If you would like to generate your own loadable program:
-    tosthread-gen-dynamic-app ../../capps/Blink/Blink.c
+    tosthreads-gen-dynamic-app ../../capps/Blink/Blink.c
index ded93534c3118fc645420fa7f5b83c46df4b7764..ab7ee1da09cab6c762f261e7e1baaa7fc32c2d44 100644 (file)
@@ -12,7 +12,7 @@ Here are the steps:
     make telosb install bsl,<device_port>
     
 2.) Create the loadable code, Blink.tos:
-    tosthread-gen-dynamic-app ../../capps/Blink/Blink.c
+    tosthreads-gen-dynamic-app ../../capps/Blink/Blink.c
 
 3.) Clear the byte array in the mote RAM buffer:
     ./serialloader.py <device_port> 0
index 5f6abc298ce9d646f9d6f5db4b174458db9f3343..dcd1d972eb57a901dc782082ed9c3595a721de09 100755 (executable)
@@ -1,5 +1,27 @@
 #!/bin/bash
 
+# Copyright (c) 2008 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>
+
 if [ $# -ne 1 -a $# -ne 2 ]
 then
   echo "Usage: `basename $0` path_to_cthread_app [options]"
index ec29b0e53daedd64db72fedc985b93ec832921e5..aa57374360dda602d2f7bf1353146fbe146533f0 100644 (file)
@@ -89,5 +89,7 @@ map_extfun = {
 
               "getLeds":107, "setLeds":108,
 
-              "__divmodhi4":109}
+              "__divmodhi4":109,
+              
+              "tosthread_join":110}
 
index 500bdfd77ee9b546c12f352a29a6922d1ddd5f08..6c57daf12d554957e6d41146d6b4b86c53ffc3ce 100644 (file)
@@ -54,6 +54,6 @@ map_extfun = {
               "read_tsr_sensor":33, "read_par_sensor":34,
               "read_temperature":35, "read_humidity":36,
 
-              "__divmodhi4":36
+              "__divmodhi4":37
               }
 
index 3bf38b578dc319d595bc00237b7b97bf40baddd7..2d07c225f1fd11ea15107970c0838bef5e7108c6 100755 (executable)
@@ -106,7 +106,9 @@ struct addr fun[] = {
   
   {getLeds}, {setLeds},
 
-  {div}
+  {div},
+  
+  {tosthread_join}
 };
 
 #endif