On 1/29/2016 3:29 PM, Soapy Smith wrote: > I can set a PRU input as follows: > > config-pin P9_27 pruin > > However, I need to control the pullup/pulldown resistor as well. > This can be done when the pin is in GPIO mode. > How is this controlled in pruin mode?
The same way, by setting bits in the pinmux register. You'll probably have to make a custom version of the universal cape to do this. When creating the pinmux values available for user-mode control, I only crafted pull-up/down permutations for the GPIO option (otherwise you get a *LOT* of entries!). By default, I set the pull-up/down for input pins based on the pin's default state at reset (most are pull-down): https://github.com/cdsteinkuehler/beaglebone-universal-io/blob/master/cape-universal-00A0.dts#L608-L609 -- Charles Steinkuehler [email protected] -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
