17 Commits (master)
 

Author SHA1 Message Date
Tom Swartz 334e5a63bb
Add GitHub-specific files 4 years ago
Tom Swartz e062fd0812 Merge pull request #4 from Acanthostega/master
Handle cases where ASM files have the same name as c, cpp files
8 years ago
Acanthostega 22d757227d Handle cases where ASM files have the same name as c, cpp files, leading to overriden .o 8 years ago
Tom Swartz f2aa032de2 Add documentation and settings for USBASP
Add a few notes and tested settings for USBASP ICSP devices.
9 years ago
Tom Swartz 2686ce9f16 Merge pull request #1 from Lekensteyn/fixes
Arduino SDK 1.6.3 fixes; allow direct inclusion of Makefile
9 years ago
Tom Swartz d04594ffb8 Merge pull request #2 from seifertm/master
Improved support for Arduino mega2560
9 years ago
Michael Seifert d8b3991ca6 When setting ARDUINO_MODEL=mega2560, the mega ARDUINO_VARIANT will be used by default. 9 years ago
Michael Seifert ce0a257d31 When setting ARDUINO_MODEL to "mega2560", the default programming port will be /dev/ttyACM0 instead of /dev/ttyUSB0. 9 years ago
Peter Wu f222e69477 Fix Servo library inclusion with Arduino SDK 1.6.3
The ARDUINO_ARCH_{board.arch} variable is documented at
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification#boardstxt

The src/$(ARCH) prefix is empirically found by checking with Arduino SDK
1.6.3 which has a libraries/Servo/library.properties file containing
architectures=avr,sam.
9 years ago
Peter Wu 9dd4befd43 Simplify extracting board variables
Use user-defined functions to simplify retrieval of variables from
the board configuration file. Documented at:
https://www.gnu.org/software/make/manual/html_node/Call-Function.html

Additional change: instead of "line contains board.var", use "line
begins with board.var=".
9 years ago
Peter Wu 5a3dfdc374 Fix compilation of Wire with Arduino 1.6.3 9 years ago
Peter Wu 24aa42c65c Allow Makefile to be included
Do not overwrite earlier variables, only set values if these were not
set before. This allows for a pattern such as:

    PROJECT = Venus_Skeleton
    ARDUINO_MODEL = uno
    #PORT = /dev/ttyACM*
    ARDUINO = 163
    #ARDUINO_DIR =	/usr/share/arduino
    #ARDUINO_VARIANT = $(ARDUINO_DIR)/hardware/arduino/avr/variants/standard
    ARDUINO_LIBS = Serial Servo Wire
    USER_LIBDIR = ./libs
    USER_LIBS = HMC5883L IRremote TrueRandom
    CEXTRA = -fdiagnostics-color=auto
    include ~/Arduino/arduino-makefile/Makefile

Other overridable variables: ARDUINO_PROGRAMMER, ARDUINO_CORE, LDLIBS,
OUTPUT, AVR_TOOLS_PATH, RESETCMD and CDEFS.

Setting ARDUINO_LIBS, OPT_WARN, OPT_WARN_C, OPT_WARN_CXX or
OPT_OTHER will prevent defaults from being set.

Some variables such as HEXFORMAT, TARFILE, LISTING_ARGS, SYMBOL_ARGS
and DEPFILE are still not configurable because they can be considered
internal.

Possibly incompatible changes:

 - AVRDUDE_PROGRAMMER is not always set to avr109 anymore, its value
   is now based on a default from boards.txt (based on the specified
   model and family).
9 years ago
Olivier Gayot ffac59f24a Handle the Properties and Models of various boards
The detection of information of the card in boards.txt failed when
the information were assigned to families and specific models

We used to look only at the properties of a specific model but sometimes
we also have to check for properties in the "parent" node.

This patch corrects that by allowing to specify both the family and
the model of the card if required.

Example of what the patch corrects:

        mega.build.f_cpu=16000000L
        mega.menu.cpu.atmega2560.build.mcu=atmega2560

For this card, the F_CPU is given by mega (the family) and the MCU is
given by the specific model (atmega2560).
9 years ago
Olivier Gayot 313dd61cdf Fix AVRDUDE programmer assignment
The default value of AVRDUDE_PROGRAMMER was not overridden by `sed'
since we use a conditional assignation (i.e. if the variable is not
already set, then we set it)
9 years ago
Olivier Gayot ef8f2ee37f Fix typo in path to Boards.txt 9 years ago
Tom Swartz 786ccfc8e6 Update README 9 years ago
Tom Swartz 6596b0c717 Initial commit
Working Makefile as of this commit with versions of software:
Arduino 1.6.1
avrdude 6.1.0
9 years ago