There are 10 red LEDs which can be set by writing directly to the 10 least significant bits of the red LED register at 0xFF200000. This is a single 32 bit register. Bits 31 down to 10 are unused.
Device | Red LEDs |
Configuration | 32-bit registers |
Input/Output | Output only |
Address Base | red LEDs: 0xFF200000 |
Address Map | base - each map directly to the register |
.equ ADDR_REDLEDS, 0xFF200000 movia r2,ADDR_REDLEDS movi r3,0xff stwio r3,0(r2) # Write to LEDs
#define RLEDs ((volatile long *) 0xFF200000) int main() { *RLEDs = 0x0ff; }