]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/tmimsp/tmirws/chips/sht11/OpenDrainP.nc
Fix TMI copyright attributions
[tinyos-2.x.git] / tos / platforms / tmimsp / tmirws / chips / sht11 / OpenDrainP.nc
index 9cc2246297ebfbe6a30cf818dc0e5b0c8561c42a..b993f224e0200833d41c1453d9bc127896ca6a70 100644 (file)
@@ -10,7 +10,7 @@
  * - Redistributions in binary form must reproduce the above copyright
  *   notice, this list of conditions and the following disclaimer in the
  *   documentation and/or other materials provided with the distribution.
- * - Neither the name of the Technische Universität Berlin nor the names
+ * - Neither the name of the Titanium Mirror, Inc. nor the names
  *   of its contributors may be used to endorse or promote products derived
  *   from this software without specific prior written permission.
  *
  */
 
 /**
- * Implement an open drain output using a GeneralIO, represented as a
- * GeneralIO.  clr() puts the pin in input mode, simulating open drain and
- * therefore requiring a pull-up on the net.  set() puts the pin in output
- * mode and sinks current by outputting a logic zero.  By definition, the
- * pin wrapped by this component can only be used as an output.
+ * Provide an open drain output as a GeneralIO using a GeneralIO.  set() puts
+ * the pin in high impedance state by selecting the pin input mode.  clr() sets
+ * the pin to sink current to ground by selecting the pin output mode, logic
+ * zero.  Generally, an external pull-up resistor will be used with an open
+ * drain output.
  *
- * TODO: there could be a version of this component that uses the msp430's
- * built-in pull-up resistor...
+ * This pin can only be an open drain output and cannot be reconfigured.
  *
  * @author R. Steve McKown <rsmckown@gmail.com>
  */
@@ -81,17 +80,8 @@ implementation
   }
 
   async command void GeneralIO.makeInput() {}
-
   async command void GeneralIO.makeOutput() {}
-
-  async command bool GeneralIO.isInput()
-  {
-    return FALSE;
-  }
-
-  async command bool GeneralIO.isOutput()
-  {
-    return TRUE;
-  }
+  async command bool GeneralIO.isInput() { return FALSE; }
+  async command bool GeneralIO.isOutput() { return TRUE; }
 }