Added libraries from Arduino 1.0.3 for sanguino build
This commit is contained in:
@ -171,15 +171,15 @@ F_CPU ?= 16000000
|
||||
# that derives from that, and their source are present in
|
||||
# the main Marlin source directory
|
||||
ifeq ($(HARDWARE_VARIANT), arduino)
|
||||
HARDWARE_SRC = $(ARDUINO_INSTALL_DIR)/hardware/arduino/cores/arduino
|
||||
HARDWARE_DIR = $(ARDUINO_INSTALL_DIR)/hardware
|
||||
else
|
||||
ifeq ($(shell [ $(ARDUINO_VERSION) -ge 100 ] && echo true), true)
|
||||
HARDWARE_SRC = ../ArduinoAddons/Arduino_1.x.x/$(HARDWARE_VARIANT)/cores/arduino
|
||||
HARDWARE_DIR = ../ArduinoAddons/Arduino_1.x.x
|
||||
else
|
||||
HARDWARE_SRC = ../ArduinoAddons/Arduino_0.xx/$(HARDWARE_VARIANT)/cores/arduino
|
||||
HARDWARE_DIR = ../ArduinoAddons/Arduino_0.xx
|
||||
endif
|
||||
endif
|
||||
|
||||
HARDWARE_SRC = $(HARDWARE_DIR)/$(HARDWARE_VARIANT)/cores/arduino
|
||||
|
||||
TARGET = $(notdir $(CURDIR))
|
||||
|
||||
@ -190,11 +190,14 @@ TARGET = $(notdir $(CURDIR))
|
||||
VPATH = .
|
||||
VPATH += $(BUILD_DIR)
|
||||
VPATH += $(HARDWARE_SRC)
|
||||
VPATH += ../ArduinoAddons/Arduino_0.xx/libraries/LiquidCrystal
|
||||
VPATH += ../ArduinoAddons/Arduino_0.xx/libraries/SPI
|
||||
VPATH += $(HARDWARE_DIR)/libraries/LiquidCrystal
|
||||
VPATH += $(HARDWARE_DIR)/libraries/SPI
|
||||
ifeq ($(HARDWARE_VARIANT), arduino)
|
||||
HARDWARE_SUB_VARIANT ?= mega
|
||||
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/variants/$(HARDWARE_SUB_VARIANT)
|
||||
else
|
||||
HARDWARE_SUB_VARIANT ?= standard
|
||||
VPATH += $(HARDWARE_DIR)/$(HARDWARE_VARIANT)/variants/$(HARDWARE_SUB_VARIANT)
|
||||
endif
|
||||
SRC = wiring.c \
|
||||
wiring_analog.c wiring_digital.c \
|
||||
|
@ -26,7 +26,7 @@
|
||||
#define HardwareSerial_h // trick to disable the standard HWserial
|
||||
#endif
|
||||
|
||||
#if (ARDUINO >= 100) && !defined(__AVR_ATmega644P__)
|
||||
#if (ARDUINO >= 100)
|
||||
# include "Arduino.h"
|
||||
#else
|
||||
# include "WProgram.h"
|
||||
|
Reference in New Issue
Block a user