From 85b09112b96972781e13f44de8f2b92ef7991b69 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Fri, 2 Jul 2010 23:51:58 +0200 Subject: [PATCH] Moved REQUIRE_LINENUMBER and REQUIRE_CHECKSUM #defines to gcode.h. --- mendel/Makefile | 4 +--- mendel/gcode.h | 6 ++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/mendel/Makefile b/mendel/Makefile index fcc78f6..3dfd4b6 100644 --- a/mendel/Makefile +++ b/mendel/Makefile @@ -38,8 +38,6 @@ OBJCOPY = $(ARCH)objcopy DEFS = -DF_CPU=$(F_CPU) # DEFS += "-DDEBUG=1" -# DEFS += "-DREQUIRE_LINENUMBER" -# DEFS += "-DREQUIRE_CHECKSUM" OPTIMIZE = -Os -ffunction-sections -finline-functions-called-once -DDEBUG # OPTIMIZE = -O0 @@ -103,4 +101,4 @@ size: $(PROGRAM).hex %.sym: %.elf @echo " SYM $@" - @$(OBJDUMP) -t $< | perl -ne 'BEGIN { printf " ADDR NAME SIZE\n"; } /([0-9a-f]+)\s+(\w+)\s+O\s+\.(bss|data)\s+([0-9a-f]+)\s+(\w+)/ && printf "0x%04x %-20s +%d\n", eval("0x$$1") & 0xFFFF, $$5, eval("0x$$4")' | sort -k1 > $@ \ No newline at end of file + @$(OBJDUMP) -t $< | perl -ne 'BEGIN { printf " ADDR NAME SIZE\n"; } /([0-9a-f]+)\s+(\w+)\s+O\s+\.(bss|data)\s+([0-9a-f]+)\s+(\w+)/ && printf "0x%04x %-20s +%d\n", eval("0x$$1") & 0xFFFF, $$5, eval("0x$$4")' | sort -k1 > $@ diff --git a/mendel/gcode.h b/mendel/gcode.h index bfc9061..bc5a8b0 100644 --- a/mendel/gcode.h +++ b/mendel/gcode.h @@ -5,6 +5,12 @@ #include "dda.h" +// wether to insist on N line numbers +//#define REQUIRE_LINENUMBER + +// wether to insist on a checksum +//#define REQUIRE_CHECKSUM + // this is a very crude decimal-based floating point structure. a real floating point would at least have signed exponent typedef struct { uint32_t sign :1;