Skip to content

Instantly share code, notes, and snippets.

@marthall
Created November 22, 2013 22:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marthall/7607917 to your computer and use it in GitHub Desktop.
Save marthall/7607917 to your computer and use it in GitHub Desktop.
.thumb
.syntax unified
.include "gpio_constants.s"
.text
.global Start
.global GPIO_ODD_IRQHandler
Start:
LOOP_START:
B LOOP_START
.thumb_func
GPIO_ODD_IRQHandler:
LDR R0, =GPIO_BASE
MOV R1, #0b100
STR R1, [R0, #PORT_SIZE * PORT_E + GPIO_PORT_DOUTTGL]
MOV R1, #0b1000000000
STR R1, [R0, #GPIO_IFC]
BX LR
NOP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment