@ -147,6 +147,11 @@ else ifeq  ($(HARDWARE_MOTHERBOARD),91)
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					HARDWARE_VARIANT  ?=  Sanguino
 
					 
					 
					 
					HARDWARE_VARIANT  ?=  Sanguino
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					MCU               ?=  atmega644p
 
					 
					 
					 
					MCU               ?=  atmega644p
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					
 
					 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					 
					 
					 
					 
					#Rambo
 
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					 
					 
					 
					 
					e l s e  i f e q   ( $( HARDWARE_MOTHERBOARD ) , 3 0 1 ) 
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					 
					 
					 
					 
					HARDWARE_VARIANT  ?=  arduino
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					 
					 
					 
					 
					MCU               ?=  atmega2560
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					 
					 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					e n d i f 
 
					 
					 
					 
					e n d i f 
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					
 
					 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					# Be sure to regenerate speed_lookuptable.h with create_speed_lookuptable.py
 
 
					 
					 
					 
					# Be sure to regenerate speed_lookuptable.h with create_speed_lookuptable.py
 
 
				
			 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
							 
						
					 
					 
					@ -158,10 +163,8 @@ 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
 
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					ARDUINO  =  $( ARDUINO_INSTALL_DIR) /hardware/arduino/cores/arduino
 
					 
					 
					 
					i f e q  ( $( HARDWARE_VARIANT ) ,  a r d u i n o ) 
 
				
			 
			
				
				
			
		
	
		
		
			
				
					
					 
					 
					 
					
 
					 
					 
					 
					HARDWARE_SRC  =  $( ARDUINO_INSTALL_DIR) /hardware/arduino/cores/arduino
 
				
			 
			
				
				
			
		
	
		
		
			
				
					
					 
					 
					 
					i f e q  ( $ { H A R D W A R E _ V A R I A N T } ,  a r d u i n o ) 
 
					 
					 
					 
					 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					HARDWARE_SRC  =  $( ARDUINO) 
 
					 
					 
					 
					 
				
			 
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 
					 
					 
					e l s e 
 
					 
					 
					 
					e l s e 
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					HARDWARE_SRC  =  $( HARDWARE_VARIANT) /cores/arduino
 
					 
					 
					 
					HARDWARE_SRC  =  $( HARDWARE_VARIANT) /cores/arduino
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					e n d i f 
 
					 
					 
					 
					e n d i f 
 
				
			 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
							 
						
					 
					 
					@ -175,12 +178,12 @@ TARGET = $(notdir $(CURDIR))
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					VPATH  =  .
 
					 
					 
					 
					VPATH  =  .
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					VPATH  +=  $( BUILD_DIR) 
 
					 
					 
					 
					VPATH  +=  $( BUILD_DIR) 
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					VPATH  +=  $( HARDWARE_SRC) 
 
					 
					 
					 
					VPATH  +=  $( HARDWARE_SRC) 
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					VPATH  +=  $( ARDUINO) 
 
					 
					 
					 
					 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					VPATH  +=  $( ARDUINO_INSTALL_DIR) /libraries/LiquidCrystal
 
					 
					 
					 
					VPATH  +=  $( ARDUINO_INSTALL_DIR) /libraries/LiquidCrystal
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					#TODO: Add the path to the hardware variant when using Arduino >= 100, and adjust the files required for compilation.
 
 
					 
					 
					 
					VPATH  +=  $( ARDUINO_INSTALL_DIR) /libraries/SPI
 
				
			 
			
				
				
			
		
	
		
		
			
				
					
					 
					 
					 
					#VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/variants/mega
 
 
					 
					 
					 
					i f e q  ( $( HARDWARE_VARIANT ) ,  a r d u i n o ) 
 
				
			 
			
				
				
			
		
	
		
		
			
				
					
					 
					 
					 
					
 
					 
					 
					 
					VPATH  +=  $( ARDUINO_INSTALL_DIR) /hardware/arduino/variants/mega
 
				
			 
			
				
				
			
		
	
		
		
			
				
					
					 
					 
					 
					SRC  =  pins_arduino.c main.c wiring.c \
 
 
					 
					 
					 
					e n d i f 
 
				
			 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 
					 
					 
					 
					 
					 
					 
					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
 
				
			 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
							 
						
					 
					 
					@ -188,8 +191,15 @@ CXXSRC = WMath.cpp WString.cpp Print.cpp Marlin_main.cpp	\
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
						MarlinSerial.cpp Sd2Card.cpp SdBaseFile.cpp SdFatUtil.cpp	\
 
 
					 
					 
					 
						MarlinSerial.cpp Sd2Card.cpp SdBaseFile.cpp SdFatUtil.cpp	\
 
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
						SdFile.cpp SdVolume.cpp motion_control.cpp planner.cpp		\
 
 
					 
					 
					 
						SdFile.cpp SdVolume.cpp motion_control.cpp planner.cpp		\
 
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
						stepper.cpp temperature.cpp cardreader.cpp ConfigurationStore.cpp
 
					 
					 
					 
						stepper.cpp temperature.cpp cardreader.cpp ConfigurationStore.cpp
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					#CXXSRC += LiquidCrystal.cpp ultralcd.cpp
 
 
					 
					 
					 
					CXXSRC  +=  LiquidCrystal.cpp ultralcd.cpp SPI.cpp
 
				
			 
			
				
				
			
		
	
		
		
			
				
					
					 
					 
					 
					#CXXSRC += ultralcd.cpp
 
 
					 
					 
					 
					
 
				
			 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 
					 
					 
					 
					 
					 
					 
					#Check for Arduino 1.0.0 or higher and use the correct sourcefiles for that version
 
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					 
					 
					 
					 
					i f e q  ( $( shell  [ $ ( ARDUINO_VERSION )  -ge  100 ] && echo  true ) ,  t r u e ) 
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					 
					 
					 
					 
					CXXSRC  +=  main.cpp
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					 
					 
					 
					 
					e l s e 
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					 
					 
					 
					 
					SRC  +=  pins_arduino.c main.c
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					 
					 
					 
					 
					e n d i f 
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					 
					 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					FORMAT  =  ihex
 
					 
					 
					 
					FORMAT  =  ihex
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					
 
					 
					 
					 
					
 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					# Name of this Makefile (used for "make depend").
 
 
					 
					 
					 
					# Name of this Makefile (used for "make depend").