If someone can help me I will be grateful.
This is my code:
Code: Select all
.equ GPIO_GPLEV0, 0x34
.equ GPIO_4, 0x10
.equ PERIPHERAL_BASE, 0x3F000000
mov w8, PERIPHERAL_BASE + GPIO_BASE //0x3F200000
ldr w9, [x8, GPIO_GPLEV0] //Get the 0-31 GPIO states
tbnz w9, #4, jump //Branch if the 4th bit (0x10) is 1 who corresponds to the pin #4