]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
readd demo sensor
authoridgay <idgay>
Wed, 18 Apr 2007 20:56:53 +0000 (20:56 +0000)
committeridgay <idgay>
Wed, 18 Apr 2007 20:56:53 +0000 (20:56 +0000)
tos/sensorboards/mts300/DemoSensorC.nc [new file with mode: 0644]
tos/sensorboards/mts300/DemoSensorStreamC.nc [new file with mode: 0644]

diff --git a/tos/sensorboards/mts300/DemoSensorC.nc b/tos/sensorboards/mts300/DemoSensorC.nc
new file mode 100644 (file)
index 0000000..3e67b8e
--- /dev/null
@@ -0,0 +1,23 @@
+/* $Id$
+ * Copyright (c) 2005 Intel Corporation
+ * All rights reserved.
+ *
+ * This file is distributed under the terms in the attached INTEL-LICENSE     
+ * file. If you do not find these files, copies can be found by writing to
+ * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA, 
+ * 94704.  Attention:  Intel License Inquiry.
+ */
+/**
+ * Demo sensor for basicsb sensorboard.
+ * 
+ * @author David Gay
+ */
+
+generic configuration DemoSensorC() {
+  provides interface Read<uint16_t>;
+}
+implementation {
+  components new PhotoC() as Sensor;
+
+  Read = Sensor;
+}
diff --git a/tos/sensorboards/mts300/DemoSensorStreamC.nc b/tos/sensorboards/mts300/DemoSensorStreamC.nc
new file mode 100644 (file)
index 0000000..cb763a7
--- /dev/null
@@ -0,0 +1,23 @@
+/* $Id$
+ * Copyright (c) 2005 Intel Corporation
+ * All rights reserved.
+ *
+ * This file is distributed under the terms in the attached INTEL-LICENSE     
+ * file. If you do not find these files, copies can be found by writing to
+ * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA, 
+ * 94704.  Attention:  Intel License Inquiry.
+ */
+/**
+ * Demo sensor for basicsb sensorboard.
+ * 
+ * @author David Gay
+ */
+
+generic configuration DemoSensorStreamC() {
+  provides interface ReadStream<uint16_t>;
+}
+implementation {
+  components new PhotoStreamC() as SensorStream;
+
+  ReadStream = SensorStream;
+}