|
@@ -33,10 +33,29 @@
|
33
|
33
|
# 5. Type "make upload", reset your Arduino board, and press enter to
|
34
|
34
|
# upload your program to the Arduino board.
|
35
|
35
|
#
|
36
|
|
-# Note that all settings are set with ?=, this means you can override them
|
37
|
|
-# from the commandline with "make HARDWARE_MOTHERBOARD=71" for example
|
|
36
|
+# Note that all settings at the top of this file can be overriden from
|
|
37
|
+# the command line with, for example, "make HARDWARE_MOTHERBOARD=71"
|
|
38
|
+#
|
|
39
|
+# To compile for RAMPS (atmega2560) with Arduino 1.6.9 at root/arduino you would use...
|
|
40
|
+#
|
|
41
|
+# make ARDUINO_VERSION=10609 AVR_TOOLS_PATH=/root/arduino/hardware/tools/avr/bin/ \
|
|
42
|
+# HARDWARE_MOTHERBOARD=33 ARDUINO_INSTALL_DIR=/root/arduino
|
|
43
|
+#
|
|
44
|
+# To compile and upload simply add "upload" to the end of the line...
|
|
45
|
+#
|
|
46
|
+# make ARDUINO_VERSION=10609 AVR_TOOLS_PATH=/root/arduino/hardware/tools/avr/bin/ \
|
|
47
|
+# HARDWARE_MOTHERBOARD=33 ARDUINO_INSTALL_DIR=/root/arduino upload
|
|
48
|
+#
|
|
49
|
+# If uploading doesn't work try adding the parameter "AVRDUDE_PROGRAMMER=wiring" or
|
|
50
|
+# start upload manually (using stk500) like so:
|
|
51
|
+#
|
|
52
|
+# avrdude -C /root/arduino/hardware/tools/avr/etc/avrdude.conf -v -p m2560 -c stk500 \
|
|
53
|
+# -U flash:w:applet/Marlin.hex:i -P /dev/ttyUSB0
|
|
54
|
+#
|
|
55
|
+# Or, try disconnecting USB to power down and then reconnecting before running avrdude.
|
|
56
|
+#
|
38
|
57
|
|
39
|
|
-# This defined the board you are compiling for (see boards.h for the options)
|
|
58
|
+# This defines the board to compile for (see boards.h for your board's ID)
|
40
|
59
|
HARDWARE_MOTHERBOARD ?= 11
|
41
|
60
|
|
42
|
61
|
# Arduino source install directory, and version number
|
|
@@ -237,7 +256,7 @@ else
|
237
|
256
|
HARDWARE_DIR = ../ArduinoAddons/Arduino_0.xx
|
238
|
257
|
endif
|
239
|
258
|
endif
|
240
|
|
-HARDWARE_SRC = $(HARDWARE_DIR)/marlin/avr/cores/arduino
|
|
259
|
+HARDWARE_SRC= $(HARDWARE_DIR)/arduino/avr/cores/arduino
|
241
|
260
|
|
242
|
261
|
TARGET = $(notdir $(CURDIR))
|
243
|
262
|
|
|
@@ -251,6 +270,8 @@ VPATH += $(HARDWARE_SRC)
|
251
|
270
|
ifeq ($(HARDWARE_VARIANT), $(filter $(HARDWARE_VARIANT),arduino Teensy Sanguino))
|
252
|
271
|
VPATH += $(HARDWARE_DIR)/marlin/avr/libraries/LiquidCrystal/src
|
253
|
272
|
VPATH += $(HARDWARE_DIR)/marlin/avr/libraries/SPI
|
|
273
|
+VPATH += $(HARDWARE_DIR)/arduino/avr/libraries/SPI
|
|
274
|
+VPATH += $(ARDUINO_INSTALL_DIR)/libraries/LiquidCrystal/src
|
254
|
275
|
ifeq ($(LIQUID_TWI2), 1)
|
255
|
276
|
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire
|
256
|
277
|
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/Wire/utility
|
|
@@ -276,6 +297,7 @@ endif
|
276
|
297
|
ifeq ($(HARDWARE_VARIANT), arduino)
|
277
|
298
|
HARDWARE_SUB_VARIANT ?= mega
|
278
|
299
|
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/variants/$(HARDWARE_SUB_VARIANT)
|
|
300
|
+VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/avr/variants/$(HARDWARE_SUB_VARIANT)
|
279
|
301
|
else
|
280
|
302
|
ifeq ($(HARDWARE_VARIANT), Sanguino)
|
281
|
303
|
VPATH += $(HARDWARE_DIR)/marlin/avr/variants/sanguino
|
|
@@ -297,7 +319,7 @@ CXXSRC = WMath.cpp WString.cpp Print.cpp Marlin_main.cpp \
|
297
|
319
|
SdFile.cpp SdVolume.cpp planner.cpp stepper.cpp \
|
298
|
320
|
temperature.cpp cardreader.cpp configuration_store.cpp \
|
299
|
321
|
watchdog.cpp SPI.cpp servo.cpp Tone.cpp ultralcd.cpp digipot_mcp4451.cpp \
|
300
|
|
- dac_mcp4728.cpp vector_3.cpp qr_solve.cpp buzzer.cpp
|
|
322
|
+ dac_mcp4728.cpp vector_3.cpp qr_solve.cpp endstops.cpp stopwatch.cpp utility.cpp
|
301
|
323
|
ifeq ($(LIQUID_TWI2), 0)
|
302
|
324
|
CXXSRC += LiquidCrystal.cpp
|
303
|
325
|
else
|