Hello, guys!
I have a question regarding the macro
#define GPIO_IRQSTATUS(n) (0x2C + (n * 4))
from AM335X_StarterWare_xx_xx_xx_xx/include/hw/hw_gpio_v2.h. Where does this formula come from? I can see in the TRM that the 0x2C is the offset of the register GPIO_IRQSTATUS0 but why do we have the (n * 4)?
-----------------------------------------------------
Also why do we have two sets of some registers (e.g. GPIO_IRQSTATUS0 and GPIO_IRQSTATUS1)? I read that it has something to do with PRU-ICSS and WakeM3 but I see no explanation of it ...
Thanks in advance!