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
# memory mapped register for gpio0/1 cfg. used as base for other registers | |
.set GPIO_CFGCTL0, 0x40000100 | |
# memory mapped register for gpio10/11 cfg | |
.set GPIO_CFGCTL5_OFS, 0x14 | |
# memory mapped register for GPIO output (whether GPIO is high or low) | |
.set GPIO_CFGCTL32_OFS, 0x88 | |
# memory mapped register for GPIO output-enable (whether GPIO gets driven) | |
.set GPIO_CFGCTL34_OFS, 0x90 | |
# config for two GPIO is stored in each CFG register, choose the appropriate one | |
# based on your GPIO number (ie GPIO11 is ODD, GPIO2 is EVEN) |