1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2025-04-21 12:27:27 +03:00

lpc111x-isp/test/: proof of concept LED-blinking code

This commit is contained in:
Werner Almesberger
2012-12-31 03:19:59 -03:00
parent c7a7d358bb
commit 49ff81fa70
3 changed files with 140 additions and 0 deletions

26
lpc111x-isp/test/Makefile Normal file
View File

@@ -0,0 +1,26 @@
PREFIX = arm-linux-gnueabi-
CC = $(PREFIX)gcc
OBJCOPY = $(PREFIX)objcopy
OBJDUMP = $(PREFIX)objdump
CFLAGS = -Wall -mcpu=cortex-m0 -march=armv6-m -mthumb \
-nostdlib
LDFLAGS = -Tlpc1112fxx2xx.lds
OBJS = test.o
.PHONY: dump clean
test.bin: test.elf
$(OBJCOPY) -j .text -j .data -O binary $< $@ || \
{ rm -f $@; exit 1; }
test.elf: $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)
dump: test.elf
$(OBJDUMP) -d test.elf
clean:
rm -f $(OBJS) test.elf test.bin