@ -41,17 +41,17 @@ HARDWARE_MOTHERBOARD ?= 11
# Arduino source install directory, and version number
# Arduino source install directory, and version number
# On most linuxes this will be /usr/share/arduino
# On most linuxes this will be /usr/share/arduino
ARDUINO_INSTALL_DIR ?= /usr/share/a rduino
ARDUINO_INSTALL_DIR ?= ${ HOME } /A rduino
ARDUINO_VERSION ?= 10 5
ARDUINO_VERSION ?= 10 6
# You can optionally set a path to the avr-gcc tools. Requires a trailing slash. (ex: /usr/local/avr-gcc/bin)
# You can optionally set a path to the avr-gcc tools. Requires a trailing slash. (ex: /usr/local/avr-gcc/bin)
AVR_TOOLS_PATH ?=
AVR_TOOLS_PATH ?=
#Programmer configuration
#Programmer configuration
UPLOAD_RATE ?= 1152 00
UPLOAD_RATE ?= 576 00
AVRDUDE_PROGRAMMER ?= wiring
AVRDUDE_PROGRAMMER ?= arduino
# on most linuxes this will be /dev/ttyACM0 or /dev/ttyACM1
# on most linuxes this will be /dev/ttyACM0 or /dev/ttyACM1
UPLOAD_PORT ?= /dev/arduino
UPLOAD_PORT ?= /dev/ttyUSB0
#Directory used to build files in, contains all the build files, from object files to the final hex file
#Directory used to build files in, contains all the build files, from object files to the final hex file
#on linux it is best to put an absolute path like /home/username/tmp .
#on linux it is best to put an absolute path like /home/username/tmp .
@ -147,6 +147,9 @@ MCU ?= atmega1284p
e l s e i f e q ( $( HARDWARE_MOTHERBOARD ) , 6 6 )
e l s e i f e q ( $( HARDWARE_MOTHERBOARD ) , 6 6 )
HARDWARE_VARIANT ?= Sanguino
HARDWARE_VARIANT ?= Sanguino
MCU ?= atmega1284p
MCU ?= atmega1284p
e l s e i f e q ( $( HARDWARE_MOTHERBOARD ) , 6 9 )
HARDWARE_VARIANT ?= Sanguino
MCU ?= atmega1284p
#Ultimaker
#Ultimaker
e l s e i f e q ( $( HARDWARE_MOTHERBOARD ) , 7 )
e l s e i f e q ( $( HARDWARE_MOTHERBOARD ) , 7 )
@ -222,7 +225,7 @@ F_CPU ?= 16000000
# Libraries, the "hardware variant" are for boards
# Libraries, the "hardware variant" are for boards
# that derives from that, and their source are present in
# that derives from that, and their source are present in
# the main Marlin source directory
# the main Marlin source directory
i f e q ( $( HARDWARE_VARIANT ) , a r d u i n o )
i f e q ( $( HARDWARE_VARIANT ) , $( filter $ ( HARDWARE_VARIANT ) ,arduino Sanguino ) )
HARDWARE_DIR = $( ARDUINO_INSTALL_DIR) /hardware
HARDWARE_DIR = $( ARDUINO_INSTALL_DIR) /hardware
e l s e
e l s e
i f e q ( $( shell [ $ ( ARDUINO_VERSION ) -ge 100 ] && echo true ) , t r u e )
i f e q ( $( shell [ $ ( ARDUINO_VERSION ) -ge 100 ] && echo true ) , t r u e )
@ -231,7 +234,7 @@ else
HARDWARE_DIR = ../ArduinoAddons/Arduino_0.xx
HARDWARE_DIR = ../ArduinoAddons/Arduino_0.xx
e n d i f
e n d i f
e n d i f
e n d i f
HARDWARE_SRC = $( HARDWARE_DIR) /$( HARDWARE_VARIANT) /cores/arduino
HARDWARE_SRC = $( HARDWARE_DIR) /marlin/avr /cores/arduino
TARGET = $( notdir $( CURDIR) )
TARGET = $( notdir $( CURDIR) )
@ -242,9 +245,9 @@ TARGET = $(notdir $(CURDIR))
VPATH = .
VPATH = .
VPATH += $( BUILD_DIR)
VPATH += $( BUILD_DIR)
VPATH += $( HARDWARE_SRC)
VPATH += $( HARDWARE_SRC)
i f e q ( $( HARDWARE_VARIANT ) , $( filter $ ( HARDWARE_VARIANT ) ,arduino Teensy ) )
i f e q ( $( HARDWARE_VARIANT ) , $( filter $ ( HARDWARE_VARIANT ) ,arduino Teensy Sanguino ) )
VPATH += $( ARDUINO_INSTALL_DIR) /libraries/LiquidCrystal
VPATH += $( HARDWARE_DIR) /marlin/avr/libraries/LiquidCrystal/src
VPATH += $( ARDUINO_INSTALL_DIR) /libraries/SPI
VPATH += $( HARDWARE_DIR) /marlin/avr /libraries/SPI
i f e q ( $( LIQUID_TWI 2) , 1 )
i f e q ( $( LIQUID_TWI 2) , 1 )
VPATH += $( ARDUINO_INSTALL_DIR) /libraries/Wire
VPATH += $( ARDUINO_INSTALL_DIR) /libraries/Wire
VPATH += $( ARDUINO_INSTALL_DIR) /libraries/Wire/utility
VPATH += $( ARDUINO_INSTALL_DIR) /libraries/Wire/utility
@ -271,13 +274,17 @@ ifeq ($(HARDWARE_VARIANT), arduino)
HARDWARE_SUB_VARIANT ?= mega
HARDWARE_SUB_VARIANT ?= mega
VPATH += $( ARDUINO_INSTALL_DIR) /hardware/arduino/variants/$( HARDWARE_SUB_VARIANT)
VPATH += $( ARDUINO_INSTALL_DIR) /hardware/arduino/variants/$( HARDWARE_SUB_VARIANT)
e l s e
e l s e
i f e q ( $( HARDWARE_VARIANT ) , S a n g u i n o )
VPATH += $( HARDWARE_DIR) /marlin/avr/variants/sanguino
e l s e
HARDWARE_SUB_VARIANT ?= standard
HARDWARE_SUB_VARIANT ?= standard
VPATH += $( HARDWARE_DIR) /$( HARDWARE_VARIANT) /variants/$( HARDWARE_SUB_VARIANT)
VPATH += $( HARDWARE_DIR) /$( HARDWARE_VARIANT) /variants/$( HARDWARE_SUB_VARIANT)
e n d i f
e n d i f
e n d i f
SRC = wiring.c \
SRC = wiring.c \
wiring_analog.c wiring_digital.c \
wiring_analog.c wiring_digital.c \
wiring_pulse.c \
wiring_pulse.c \
wiring_shift.c WInterrupts.c
wiring_shift.c WInterrupts.c hooks.c
i f e q ( $( HARDWARE_VARIANT ) , T e e n s y )
i f e q ( $( HARDWARE_VARIANT ) , T e e n s y )
SRC = wiring.c
SRC = wiring.c
VPATH += $( ARDUINO_INSTALL_DIR) /hardware/teensy/cores/teensy
VPATH += $( ARDUINO_INSTALL_DIR) /hardware/teensy/cores/teensy