Table: Check the Interrupt Status and Disable Interrupts and Table: Read, Write, and Compare Interrupt Types describe the flow to run self-test on the GPIO.
In Table: Check the Interrupt Status and Disable Interrupts, the tasks outline the flow to check the interrupt status for bank 0. If any interrupt is enabled, then disable the particular interrupt (bank 0).
Table 27-5: Check the Interrupt Status and Disable Interrupts
Task
|
Register Name
|
Register Field
|
Register Offset
|
Bits
|
Value
|
Get the interrupt mask status
|
gpio.INT_MASK_0
|
INT_MASK_0
|
0x20C
|
31:0
|
Read value
|
Disable interrupts for GPIO bank 0
|
gpio.INT_DIS_0
|
INT_DISABLE_0
|
0x214
|
31:0
|
Read value of previous step
|
The tasks in Table: Read, Write, and Compare Interrupt Types outline the flow used to write, read, and compare the interrupt type, polarity, and any edge sensitivity fields of bank 0.
Table 27-6: Read, Write, and Compare Interrupt Types
Task
|
Register Name
|
Register Field
|
Register Offset
|
Bits
|
Value
|
Write interrupt type
|
gpio.INT_TYPE_0
|
INT_TYPE_0
|
0x21C
|
31:0
|
Test Value
|
Write interrupt polarity
|
gpio.INT_POLARITY_0
|
INT_POL_0
|
0x220
|
31:0
|
Test Value
|
Write interrupt any edge sensitivity
|
gpio.INT_ANY_0
|
INT_ON_ANY_0
|
0x224
|
31:0
|
Test Value
|
Read interrupt type
|
gpio.INT_TYPE_0
|
INT_TYPE_0
|
0x21C
|
31:0
|
|
Read interrupt polarity
|
gpio.INT_POLARITY_0
|
INT_POL_0
|
0x220
|
31:0
|
|
Read interrupt any edge sensitivity
|
gpio.INT_ANY_0
|
INT_ON_ANY_0
|
0x224
|
31:0
|
|