From: idgay Date: Wed, 18 Apr 2007 20:56:53 +0000 (+0000) Subject: readd demo sensor X-Git-Tag: tinyos/2.0.1~34 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=ddd4b966318589f58134ee9eb755773d4f73648d readd demo sensor --- diff --git a/tos/sensorboards/mts300/DemoSensorC.nc b/tos/sensorboards/mts300/DemoSensorC.nc new file mode 100644 index 00000000..3e67b8e2 --- /dev/null +++ b/tos/sensorboards/mts300/DemoSensorC.nc @@ -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; +} +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 index 00000000..cb763a78 --- /dev/null +++ b/tos/sensorboards/mts300/DemoSensorStreamC.nc @@ -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; +} +implementation { + components new PhotoStreamC() as SensorStream; + + ReadStream = SensorStream; +}