Some progress on i2c control.

This commit is contained in:
2011-05-09 13:41:53 +00:00
parent 85d33abdd9
commit 52e1c59a2e
5 changed files with 223 additions and 15 deletions

View File

@@ -2,15 +2,16 @@
NAME=quad
OBJS=crt0.o main.o
SSRCS=crt0.s
CSRCS=main.c i2c.c
CFLAGS=-march=armv4t -msoft-float
CFLAGS=-march=armv4t -msoft-float -O1
LDSCRIPT=lpc2103_flash.ld
CC=arm-elf-gcc
OBJCOPY=arm-elf-objcopy
CLEANOBJS=$(OBJS) $(NAME).hex $(NAME).elf $(NAME).bin $(NAME).map
CLEANOBJS=$(OBJS) $(NAME).hex $(NAME).elf $(NAME).bin $(NAME).map .depend
all: $(NAME).bin
@@ -18,6 +19,9 @@ all: $(NAME).bin
# In theory, nothing below here needs touching for as long as all of the
# sources are in a single directory.
COBJS=$(CSRCS:.c=.o)
SOBJS=$(SSRCS:.s=.o)
OBJS=$(SOBJS) $(COBJS)
.SUFFIXES: .elf .hex .bin
@@ -36,3 +40,7 @@ run: $(NAME).hex
clean:
rm -rf $(CLEANOBJS)
depend:
$(CC) -MM $(CFLAGS) -nostdlib -nostartfiles $(CSRCS) >.depend
.sinclude ".depend"