Using Arduino 21

This commit is contained in:
maniacbug 2011-10-19 16:09:26 -07:00
parent 726027837e
commit f5c0ba25ee
1 changed files with 3 additions and 2 deletions

View File

@ -18,7 +18,8 @@ ARDUINO_VERSION = 22 ;
OLD_DIR = /opt/arduino-0021 ; OLD_DIR = /opt/arduino-0021 ;
AVR_TOOLS_PATH = $(OLD_DIR)/hardware/tools/avr/bin ; AVR_TOOLS_PATH = $(OLD_DIR)/hardware/tools/avr/bin ;
AVRDUDECONFIG_PATH = $(OLD_DIR)/hardware/tools/avr/etc ; AVRDUDECONFIG_PATH = $(OLD_DIR)/hardware/tools/avr/etc ;
ARDUINO_DIR = /opt/Arduino ; #ARDUINO_DIR = /opt/Arduino ;
ARDUINO_DIR = $(OLD_DIR) ;
ARDUINO_AVR = /usr/lib/avr/include ; ARDUINO_AVR = /usr/lib/avr/include ;
} }
@ -40,7 +41,7 @@ AVRDUDE = $(AVR_TOOLS_PATH)/avrdude ;
DEFINES = F_CPU=$(F_CPU)L ARDUINO=$(ARDUINO_VERSION) VERSION_H ; DEFINES = F_CPU=$(F_CPU)L ARDUINO=$(ARDUINO_VERSION) VERSION_H ;
CTUNING = -ffunction-sections -fdata-sections ; CTUNING = -ffunction-sections -fdata-sections ;
CXXTUNING = -fno-exceptions -fno-strict-aliasing ; CXXTUNING = -fno-exceptions -fno-strict-aliasing ;
CFLAGS = -Os -Werror -Wall -Wextra -mmcu=$(MCU) $(CTUNING) ; CFLAGS = -Os -Wall -Wextra -mmcu=$(MCU) $(CTUNING) ;
CXXFLAGS = $(CFLAGS) $(CXXTUNING) ; CXXFLAGS = $(CFLAGS) $(CXXTUNING) ;
LDFLAGS = -Os -lm -Wl,--gc-sections -mmcu=atmega328p ; LDFLAGS = -Os -lm -Wl,--gc-sections -mmcu=atmega328p ;