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 ldr r0, ADDR_REDLEDS mov r1, #-1 str r1, [r0] // Write to LEDs
#define RLEDs ((volatile long *) 0xFF200000) int main() { *RLEDs = 0x0ff; }