This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EK-TM4C1294XL: How to configure GPIO pins as bidirectional?

Part Number: EK-TM4C1294XL

I have been using the GPIOPinTypeGPIOOutput() and GPIOPinTypeGPIOInput() to configure GPIO pins but these functions do not allow me to configure the ports in bidirectional mode.  Are the ports in this microcontroller to be used unidirectional mode only or can they be used bidirectional mode?  If they can be used in bidirectional mode, could somebody share an example on how to do this?

  • Hi,

      Although the I/O buffers are bidirectional, but in GPIO mode you can only configure and operate for one direction at a time. If you need to change the direction then you will need to reconfigure the GPIO again for the direction you need. The the pins are configured for functional mode (e.g. EPI for external memory interface) then the direction of the buffer is controlled by the functional module itself. For example, EPI will change the I/O buffer direction to output for writing data to memory and change the direction to input for reading the memory.