forked from len0rd/rockbox
New sprintf.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@386 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9376d05a3b
commit
8307cfd1c1
2 changed files with 4 additions and 3 deletions
|
|
@ -6,10 +6,11 @@ OC = sh-elf-objcopy
|
||||||
|
|
||||||
INCLUDES=-I../.. -I../../drivers
|
INCLUDES=-I../.. -I../../drivers
|
||||||
|
|
||||||
CFLAGS = -g -Wall -m1 -nostdlib -Wstrict-prototypes -fschedule-insns -fno-builtin $(INCLUDES)
|
CFLAGS = -g -Wall -m1 -nostdlib -Wstrict-prototypes -fschedule-insns -fno-builtin $(INCLUDES) -DDEBUG
|
||||||
AFLAGS += -small -relax
|
AFLAGS += -small -relax
|
||||||
|
|
||||||
OBJS= crt0.o main.o ../../drivers/i2c.o ../../drivers/mas.o ../../debug.o
|
OBJS= crt0.o main.o ../../drivers/i2c.o ../../drivers/mas.o ../../debug.o \
|
||||||
|
../../common/sprintf.o
|
||||||
|
|
||||||
%.o: %.S
|
%.o: %.S
|
||||||
$(CC) -o $@ $(CFLAGS) $(INCLUDES) $(DEFS) -c $<
|
$(CC) -o $@ $(CFLAGS) $(INCLUDES) $(DEFS) -c $<
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ int main(void)
|
||||||
debugf("Olle: %d\n", 7);
|
debugf("Olle: %d\n", 7);
|
||||||
|
|
||||||
i2c_init();
|
i2c_init();
|
||||||
debug("I2C Init done\n");
|
debugf("I2C Init done\n");
|
||||||
i=mas_readmem(MAS_BANK_D1,0xff6,(unsigned long*)buf,2);
|
i=mas_readmem(MAS_BANK_D1,0xff6,(unsigned long*)buf,2);
|
||||||
if (i) {
|
if (i) {
|
||||||
debugf("Error - mas_readmem() returned %d\n", i);
|
debugf("Error - mas_readmem() returned %d\n", i);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue