interrupts, timers, under construction
[rpikern] / src / startup.s
index 7765ede..587ab95 100644 (file)
@@ -3,6 +3,7 @@
        .section .startup
        .code 32
 
+       .global startup
 startup:
        @ stop all but one of the cores
        mrc p15, 0, r0, c0, c0, 5
@@ -28,19 +29,4 @@ startup:
 exit:  wfe
        b exit
 
-       .global dbgled
-dbgled:
-       ldr r3, =0x3f200000     @ gpio base
-       ldr r2, =0x9000         @ gpio 24 and 25 -> output
-       str r2, [r3, #8]        @ store to GPFSEL2
-       ldr r2, =0x01000000     @ bit 24
-       tst r0, #1
-       strne r2, [r3, #0x1c]   @ GPSET0
-       streq r2, [r3, #0x28]   @ GPCLR0
-       lsl r2, #1
-       tst r0, #2
-       strne r2, [r3, #0x1c]   @ GPSET0
-       streq r2, [r3, #0x28]   @ GPCLR0
-       bx lr
-
 @ vi:set filetype=armasm: