Skip to content

Instantly share code, notes, and snippets.

@marthall
Created November 16, 2013 12:57
Show Gist options
  • Save marthall/7499901 to your computer and use it in GitHub Desktop.
Save marthall/7499901 to your computer and use it in GitHub Desktop.
.thumb
.syntax unified
.include "gpio_constants.s" // Register-adresser og konstanter for GPIO
.global GPIO_ODD_IRQHandler
.thumb_func
.text
.global Start
Start:
LDR R0, =GPIO_BASE
MOV R1, #0b00000100
STR R1, [R0, #PORT_SIZE * PORT_E + GPIO_PORT_DOUTSET]
LOOP_START:
BNE LOOP_START
GPIO_ODD_IRQHandler:
MOV R2, #0b00000100
STR R2, [R0, #PORT_SIZE * PORT_E + GPIO_PORT_DOUTTGL]
BX LR
NOP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment