]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/sensorboards/mts300/MicStreamC.nc
Convert to Unix-style line terminators.
[tinyos-2.x.git] / tos / sensorboards / mts300 / MicStreamC.nc
index 1f440c64888ec43d48fc890647f5354c215b1fda..9e8f70cd10d0e458f37dd185b4ee5e4310e28859 100644 (file)
@@ -1,47 +1,47 @@
-/**\r
- *  Copyright (c) 2005-2006 Crossbow Technology, Inc.\r
- *  All rights reserved.\r
- *\r
- *  Permission to use, copy, modify, and distribute this software and its\r
- *  documentation for any purpose, without fee, and without written\r
- *  agreement is hereby granted, provided that the above copyright\r
- *  notice, the (updated) modification history and the author appear in\r
- *  all copies of this source code.\r
- *\r
- *  Permission is also granted to distribute this software under the\r
- *  standard BSD license as contained in the TinyOS distribution.\r
- *\r
- *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS'\r
- *  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- *  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- *  ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS\r
- *  BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r
- *  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, LOSS OF USE, DATA,\r
- *  OR PROFITS) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r
- *  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r
- *  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF\r
- *  THE POSSIBILITY OF SUCH DAMAGE.\r
- */\r
- /*\r
- *  @author Hu Siquan <husq@xbow.com>\r
- *\r
- *  $Id$\r
- */\r
-\r
-#include "mts300.h"\r
-\r
-generic configuration MicStreamC() {\r
-  provides interface ReadStream<uint16_t>;\r
-  provides interface MicSetting;\r
-}\r
-implementation {\r
-  enum {\r
-    ID = unique(UQ_MIC_RESOURCE)\r
-  };\r
-  components MicReadStreamP, MicDeviceP, new AdcReadStreamClientC();\r
-\r
-  ReadStream = MicReadStreamP.ReadStream[ID];\r
-  MicReadStreamP.ActualRead[ID] -> AdcReadStreamClientC;\r
-  AdcReadStreamClientC.Atm128AdcConfig -> MicDeviceP.Atm128AdcConfig;\r
-  MicSetting = MicReadStreamP;\r
-}\r
+/**
+ *  Copyright (c) 2005-2006 Crossbow Technology, Inc.
+ *  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.
+ *
+ *  Permission is also granted to distribute this software under the
+ *  standard BSD license as contained in the TinyOS distribution.
+ *
+ *  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 Hu Siquan <husq@xbow.com>
+ *
+ *  $Id$
+ */
+
+#include "mts300.h"
+
+generic configuration MicStreamC() {
+  provides interface ReadStream<uint16_t>;
+  provides interface MicSetting;
+}
+implementation {
+  enum {
+    ID = unique(UQ_MIC_RESOURCE)
+  };
+  components MicReadStreamP, MicDeviceP, new AdcReadStreamClientC();
+
+  ReadStream = MicReadStreamP.ReadStream[ID];
+  MicReadStreamP.ActualRead[ID] -> AdcReadStreamClientC;
+  AdcReadStreamClientC.Atm128AdcConfig -> MicDeviceP.Atm128AdcConfig;
+  MicSetting = MicReadStreamP;
+}