Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>
&& sed -e":a;N;$$!ba;s/\\\\\\n//g" $$b.d|grep "^$$(basename $1):"\
| cut -d: -f2)||echo $$b.c')
-all: crc
+all: crc.h crc
$(PROJECT).elf: $(OBJECTS)
$(PLATFORM)-ld -Map $(PROJECT).map $(LDFLAGS) $(OBJECTS) -o $@
.PHONY: clean gdb crc
clean:
- rm -f $(PROJECT).elf $(OBJECTS) $(OBJECTS:.o=.d) $(PROJECT).map
+ rm -f $(PROJECT).elf $(OBJECTS) $(OBJECTS:.o=.d) $(PROJECT).map crc.h
gdb:
$(PLATFORM)-gdb $(PROJECT).elf
crc: $(PROJECT).bin
- ../tools/lpcrc/lpcrc.sh $(PROJECT).bin $(BPATH)/startup.c
+ ../tools/lpcrc/lpcrc.sh $(PROJECT).bin crc.h
+
+crc.h: crc.tmpl.h
+ cp crc.tmpl.h crc.h
//
//*****************************************************************************
+#include "../../crc.h"
+
#define WEAK __attribute__ ((weak))
//*****************************************************************************
//*****************************************************************************
static unsigned long pulStack[64];
-#define CRC_CHECKSUM 0xeffffcbf
-
//*****************************************************************************
//
// The vector table. Note that the proper constructs must be placed on this to
--- /dev/null
+#define CRC_CHECKSUM 0x01234567