X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fmsp430%2Fpins%2FHplMsp430GeneralIO.nc;fp=tos%2Fchips%2Fmsp430%2Fpins%2FHplMsp430GeneralIO.nc;h=3615b3abe5da3396822e625f1a2387daf5274364;hb=3837bacf0d2200b43265648ed5537d2b9cd88a77;hp=f8314b9534e0b836701c6fd77501cefb32eb6a4b;hpb=15de1ab190de3c8bb893357cdc099e7d91971a28;p=tinyos-2.x.git diff --git a/tos/chips/msp430/pins/HplMsp430GeneralIO.nc b/tos/chips/msp430/pins/HplMsp430GeneralIO.nc index f8314b95..3615b3ab 100644 --- a/tos/chips/msp430/pins/HplMsp430GeneralIO.nc +++ b/tos/chips/msp430/pins/HplMsp430GeneralIO.nc @@ -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(); }