]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Moved these two files outside TinyOS tree
authorliang_mike <liang_mike>
Tue, 17 Feb 2009 04:40:40 +0000 (04:40 +0000)
committerliang_mike <liang_mike>
Tue, 17 Feb 2009 04:40:40 +0000 (04:40 +0000)
tools/tinyos/tosthreads/tosthreads_tenet_api.py [deleted file]
tos/lib/tosthreads/csystem/tosthread_tenet.h [deleted file]

diff --git a/tools/tinyos/tosthreads/tosthreads_tenet_api.py b/tools/tinyos/tosthreads/tosthreads_tenet_api.py
deleted file mode 100644 (file)
index 6c57daf..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/usr/bin/python
-
-# 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>
-# @author Razvan Musaloiu-E. <razvanm@cs.jhu.edu>
-
-import sys, subprocess
-import struct
-
-
-# ===== STEP 0: Prepares function-ID maps ===== #
-map_extfun = {
-              "tosthread_sleep":0, "tosthread_create":1,
-
-              "led0On":2, "led1On":3, "led2On":4, 
-              "led0Off":5, "led1Off":6, "led2Off":7, 
-              "led0Toggle":8, "led1Toggle":9, "led2Toggle":10,
-              "getLeds":11, "setLeds":12,
-              
-              "reboot":13,
-
-              "get_nodeid":14, "get_nexthop":15,
-              "get_globaltime":16, "get_localtime":17,
-              "get_rfpower":18, "get_istimesync":19,
-              "get_globaltimems":20, "get_localtimems":21,
-              "get_clockfreq":22, "get_platform":23,
-              "get_hopcount":24, "get_rfchannel":25,
-
-              "tenet_get_tid":26, "tenet_get_src":27, "tenet_get_numtasks":28,
-
-              "read_voltage":29, "read_internal_temperature":30,
-
-              "tenet_send":31, "tenet_sendto":32,
-
-              "read_tsr_sensor":33, "read_par_sensor":34,
-              "read_temperature":35, "read_humidity":36,
-
-              "__divmodhi4":37
-              }
-
diff --git a/tos/lib/tosthreads/csystem/tosthread_tenet.h b/tos/lib/tosthreads/csystem/tosthread_tenet.h
deleted file mode 100644 (file)
index a2d5fd9..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-
-/**
- * @author Jeongyeup Paek (jpaek@enl.usc.edu)
- **/
-#ifndef TOSTHREAD_TENET_H
-#define TOSTHREAD_TENET_H
-
-extern error_t tenet_send(uint8_t len, uint8_t *data);
-extern error_t tenet_sendto(uint16_t tid, uint16_t dst, uint8_t len, uint8_t *data);
-
-extern uint16_t tenet_get_tid();
-extern uint16_t tenet_get_src();
-extern uint8_t tenet_get_numtasks();
-
-extern void reboot();
-
-extern uint16_t get_nodeid();
-extern uint16_t get_nexthop();
-extern uint32_t get_globaltime();
-extern uint32_t get_localtime();
-extern uint16_t get_rfpower();
-extern uint16_t get_istimesync();
-extern uint32_t get_globaltimems();
-extern uint32_t get_localtimems();
-extern uint16_t get_clockfreq();
-extern uint16_t get_platform();
-extern uint16_t get_hopcount();
-extern uint16_t get_rfchannel();
-
-extern uint16_t read_voltage();
-extern uint16_t read_internal_temperature();
-extern uint16_t read_tsr_sensor();
-extern uint16_t read_par_sensor();
-extern uint16_t read_temperature();
-extern uint16_t read_humidity();
-
-#endif //TOSTHREAD_TENET_H
-