1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-01 10:22:48 +02:00

Subject: we-don't-nend-led_on.S-any-more

X-Git-Url: http://git.openmoko.org/?p=qi.git;a=commitdiff_plain;h=ebbad42a5c0013c68407167c65d9c7e56a725a93

we-don't-nend-led_on.S-any-more
This commit is contained in:
xiangfu 2008-11-28 10:16:37 +00:00 committed by Andy Green
parent fdd6c5544b
commit b4134e84cf
2 changed files with 0 additions and 42 deletions

View File

@ -68,10 +68,5 @@ ${UDFU_IMAGE}:${OBJS}
-d ${IMAGE} ${UDFU_IMAGE}
@$(OBJDUMP) -d ${TARGET} >${IMAGE}.dis
blink_led:src/led_on.S
$(CC) $(CFLAGS) led_on.o led_on.S
$(LD) -g led_on.o -o led_on_temp.o
$(OBJCOPY) -O binary -S led_on_temp.o $(IMAGE)/led_on
clean:
@rm -f src/*.o src/*~ include/*~ ${IMAGE}* ${TARGET} ${UDFU_IMAGE}

View File

@ -1,37 +0,0 @@
_start:
mov ip, sp
stmfd sp!, {fp, ip, lr, pc}
sub fp, ip, #4
ldr r2, .L4
mov r3, #5
str r3, [r2, #0]
ldr r2, .L4+4
ldr r3, .L4+8
str r3, [r2, #0]
.L2:
ldr r2, .L4+12
ldr r3, .L4+12
ldr r3, [r3, #0]
bic r3, r3, #1
str r3, [r2, #0]
ldr r0, .L4+8
bl delay
ldr r2, .L4+12
ldr r3, .L4+12
ldr r3, [r3, #0]
orr r3, r3, #1
str r3, [r2, #0]
ldr r0, .L4+8
bl delay
b .L2
.L5:
.align 2
.L4:
.word 1442840592
.word 1442840600
.word 65535
.word 1442840596
delay:
subs r0,r0,#0x1
bne delay
mov pc,lr