Created
November 16, 2013 12:57
-
-
Save marthall/7499901 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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