kolban wrote:
[...]is there a way to determine the current input and output direction of a given pin?
The "direction" register is at offset 0x0c, given by GPIO_ENABLE_ADDRESS. The value resulting from GPIO_REG_READ(GPIO_ENABLE_ADDRESS) will have 1s in bit positions corresponding to pins that are outputs. This assumes, of course, that the IO MUX is set for the bit to be a GPIO.Statistics: Posted by dkinzer — Tue Sep 22, 2015 11:13 pm
]]>