GPIO | Cypress Semiconductor
In the GPIO sample code "cyfxgpioapp", there is a line as
io_cfg.gpioSimpleEn = (1 << 13); /* Enable GPIO 45 */
My questions are only related to simple GPIOs:
1. when should we use this method of GPIO definition versus override API (as for gpio 21 in the same code)?
2. How we come up with the number 13? Where can I lookup the similar number if I want to use other GPIOs?
3. On the DVK, can I use PMODE0 and PMODE2 as simple GPIO output? which method (io matrix or API override) should I use?