Last active
January 10, 2021 07:04
-
-
Save 9names/95996dc7a6a262fb9edacaa6d1a68918 to your computer and use it in GitHub Desktop.
Writing
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
.set GPIO_CFGCTL2, 0x40000108 | |
.set GPIO_CFGCTL32, 0x40000188 | |
.set GPIO_CFGCTL34, 0x40000190 | |
.set GPIO_CFG_GPIO5, 0b00001011001000000000000000000000 | |
.set GPIO_BITSET_GPIO5, 0b00000000000000000000000000100000 | |
.section .text | |
main: | |
la t1, GPIO_CFGCTL2 | |
la t2, GPIO_CFG_GPIO5 | |
sw t2, 0(t1) | |
la t1, GPIO_CFGCTL34 | |
la t2, GPIO_BITSET_GPIO5 | |
sw t2, 0(t1) | |
la t1, GPIO_CFGCTL32 | |
loop: | |
sw t2, 0(t1) | |
j loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment