GPIO Peripheral Interface

Use the SYSTEM_GPIO_0_IO_CTRL or SYSTEM_GPIO_1_IO_CTRL parameter to reference the GPIO interface.

Table 1. GPIO PortsWhere n is 0 or 1, and where BIT can be configured to as 1, 2, 4, 8, or 16 bits.
Port Direction Description
system_gpio_n_io_read[BIT-1:0] Input GPIO input.
system_gpio_n_io_write[BIT-1:0] Output GPIO output.
system_gpio_n_io_writeEnable[BIT-1:0] Output GPIO output enable.
Table 2. GPIO Register Map
Address Offset Register Name Privilege Width
0x0000_0000 Input Read 32
0x0000_0004 Output Read/Write 32
0x0000_0008 Output Enable Read/Write 32
0x0000_0020 Interrupt Rise Enable Read/Write 32
0x0000_0024 Interrupt Fall Enable Read/Write 32
0x0000_0028 Interrupt High Enable Read/Write 32
0x0000_002C Interrupt Low Enable Read/Write 32