Moved REQUIRE_LINENUMBER and REQUIRE_CHECKSUM #defines to gcode.h.

This commit is contained in:
Markus Hitter 2010-07-02 23:51:58 +02:00
parent c591d3330d
commit 85b09112b9
2 changed files with 7 additions and 3 deletions

View File

@ -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 > $@
@$(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 > $@

View File

@ -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;