MSS GPIO configuration

I have a question regarding GPIO access via the MSS . I’m trying to configure the GPIO ports as output, input, or inout by directly writing to their memory-mapped addresses. Here’s how I’ve defined the base and offset addresses: (modifié)

/* GPIO base addresses /
#define GPIO0_BASE_ADDR 0x20120000
#define GPIO1_BASE_ADDR 0x20121000
#define GPIO2_BASE_ADDR 0x20122000
/
GPIO register offsets */
#define CONFIG_OFFSET 0x000
#define INTR_OFFSET 0x080
#define GPIN_OFFSET 0x084
#define GPOUT_OFFSET 0x088
#define CONFIG_ALL_OFFSET 0x08C
#define CONFIG_BYTE 0x090
#define CLEAR_BITS_OFFSET 0x0A0
#define SET_BITS_OFFSET 0x0A4

I’m specifically trying to configure the Cape Headers P8 via MSS_GPIO_2 located in BANK2, and control those pins. Although I can successfully modify the configuration registers (i.e., I can write and read back expected values), the output values do not appear to reflect on the actual Cape Header pins (P8). The pins stay unchanged.