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 = -DF_CPU=$(F_CPU)
# DEFS += "-DDEBUG=1" # DEFS += "-DDEBUG=1"
# DEFS += "-DREQUIRE_LINENUMBER"
# DEFS += "-DREQUIRE_CHECKSUM"
OPTIMIZE = -Os -ffunction-sections -finline-functions-called-once -DDEBUG OPTIMIZE = -Os -ffunction-sections -finline-functions-called-once -DDEBUG
# OPTIMIZE = -O0 # OPTIMIZE = -O0

View File

@ -5,6 +5,12 @@
#include "dda.h" #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 // this is a very crude decimal-based floating point structure. a real floating point would at least have signed exponent
typedef struct { typedef struct {
uint32_t sign :1; uint32_t sign :1;