Skip to content

Commit

Permalink
Fix for issue #682 -DARDUINO= and -DENERGIA= version defines
Browse files Browse the repository at this point in the history
  • Loading branch information
robertinant committed Jul 24, 2015
1 parent 8644f21 commit 08d045e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/src/processing/app/debug/Compiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ public boolean compile(Sketch sketch,
fw.write("BOARD ?=" + boardPreferences.get("build.hardware") +"\n");
fw.write("PLATFORM ?=" + Preferences.get("target") + "\n");
fw.write("BUILD_DRVLIB ?= " + Preferences.getBoolean("build.drvlib") + "\n");
fw.write("ENERGIA_VERSION ?=" + Base.EREVISION + "\n");
fw.write("ARDUINO_VERSION ?=" + Base.REVISION + "\n");

// Add all Sketch tabs that match the extension list to EXTRA_SOURCES
List<String> allowedExtensions = Arrays.asList("c", "cpp", "S");
Expand Down
2 changes: 1 addition & 1 deletion hardware/common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ CFLAGS += $(foreach includedir,$(INCLUDE_DIRS),-I$(includedir))

include $(APPLICATION_PATH)/hardware/$(PLATFORM)/Plat.mk

CFLAGS += -ffunction-sections -fdata-sections -DARDUINO=101 -DBOARD_$(BOARD) -DENERGIA=14 $(MCU_FLAG) $(VFP)
CFLAGS += -ffunction-sections -fdata-sections -DARDUINO=$(ENERGIA_VERSION) -DBOARD_$(BOARD) -DENERGIA=$(ENERGIA_VERSION) $(MCU_FLAG) $(VFP)
CPPFLAGS += -fno-exceptions -fno-rtti

# define TI-RTOS and Energia wiring headers based on CLOSURE above
Expand Down

0 comments on commit 08d045e

Please sign in to comment.