]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/pins/HplMsp430GeneralIO.nc
New msp430 features: (1) support pull-up/pull-down resistors on newer parts
[tinyos-2.x.git] / tos / chips / msp430 / pins / HplMsp430GeneralIO.nc
index f8314b9534e0b836701c6fd77501cefb32eb6a4b..3615b3abe5da3396822e625f1a2387daf5274364 100644 (file)
@@ -85,5 +85,17 @@ interface HplMsp430GeneralIO
   async command void selectIOFunc();
   
   async command bool isIOFunc();
+
+  /**
+   * Enable pullup/pulldown resistor.  When enabled, the output state is used
+   * to determine which resistor is enabled.  When set(), the pull-up is
+   * enabled; when clr(), the pull-down is enabled.
+   */
+  async command void enableRen();
+
+  /**
+   * Disable pullup/pulldown resistor.
+   */
+  async command void disableRen();
 }