1 of 1 people found this helpful
Please go through the following application note on PSoC 4 GPIOs
The above web page has a document along with a zip folder containing projects on the usage of GPIOs. Please go through first 2 projects.
Also, please go through Digital Pins code example present in PSoC Creator code examples section.
Thank you, this helps a lot.
If I've understood correctly I don't need to initialize GPIO's myself, the framework handles that as long pins have been bound in PSoC Creators "Design Wide Resources"-pins view.
Yes, You do not need to initialize the GPIOs. As already mentioned in the App Note : https://www.cypress.com/documentation/application-notes/an86439-psoc-4-using-gpio-pins , the Pins Component is the recommended method for connecting internal PSoC resources to a physical pin. It allows PSoC Creator to automatically place and route the signals within the PSoC device based on the chosen pin configuration.