Bidirectional GPIO pin | Cypress Semiconductor
Bidirectional GPIO pin
How can I define a bidirectional GPIO? The cypress IC is the master so in firmware we know when it has to switch from output to input.
I defined it as an output in the initialization function (Thread_Entry). In a callBackDma function, I am changing it as an input to read back the data, then change it as an output. Is this method correct?