Commit graph

754 commits

Author SHA1 Message Date
Ralf Doering
25a31afbd9 Don't overwrite AVRDUDE_CONF if AVR_TOOLS_DIR is not set.
If one likes to use avrdude from outside of Arduino together with
Arduino-bundled gcc crosstolchain, the setting of AVRDUDE_CONF got
overwritten.
2013-06-25 20:07:56 +02:00
Ralf Doering
74882aa13a Add openSUSE perl package hints to README.md.
Signed-off-by: Ralf Doering <ralf@rdoering.net>
2013-06-25 19:41:33 +02:00
Sudar
fb1fac8a86 Merge pull request #89 from ralfdoering/fix-whitespace-revised
Remove tab from empty line.
2013-06-25 07:37:52 -07:00
Ralf Doering
2a52ff7e02 Remove tab from empty line.
If editing and saving Arduino.mk with emacs, emacs complains about
"Suspicious line 1050". This line is empty but contains an extra tab.

Signed-off-by: Ralf Doering <ralf@rdoering.net>
2013-06-25 15:37:42 +02:00
Sudar
18688003a3 Add installation guide to Readme file 2013-06-23 16:58:19 +05:30
Sudar
700f82b3f1 Remove redundant checks for ARDUINO_DIR 2013-06-23 13:16:37 +05:30
Sudar
7e66672a6c Auto detect alternate core path from sketchbook folder
Fix #86
2013-06-23 13:08:06 +05:30
Sudar
2b75a0ddb4 Add Tiny SoftwareSerial example
This example shows how to use softwareSerial in a ATtiny device using
the ATtiny core
2013-06-22 15:35:01 +05:30
Sudar
e0856e51d9 Remove "utility" from example makefiles
From commit fc968b9191 files inside
utility are automatically build.

Fix #84
2013-06-22 11:48:26 +05:30
Simon John
c284ec93dd Add support for reseting "Micro" Arduino.
Micro can be reset using Leonardo reset functions itself. So call
Leonardo reset functions for Micro as well.

The reset function seems to have some issues for Micro and is not
100% reliable, like Leonardo. See comments in #30.

Fix #80
Fix #83
2013-06-21 08:37:11 +05:30
Sudar
4e22abe0de Add support for specifying optimization level
Fix #81
2013-06-20 21:56:54 +05:30
Sudar
6cdad1d621 Add $OBJDIR to the list of configuration that gets printed
Fix #77
2013-06-20 21:32:35 +05:30
Sudar
3b35453564 Release v0.12.0 2013-06-20 12:58:57 +05:30
Sudar
8f4bbe114e Deprecate "generated_assembly" target in favour of "generate_assembly"
The deprecated target will be removed in v1.0.0.
Fix #79
2013-06-20 12:51:56 +05:30
Matthijs Kooijman
09840089fd Fix make generated_assembly
Before, .ino and .pde files would be converted to .cpp files and there
is a rule to convert those .cpp files to .s files for make
generated_assembly. However, since 1f043bb (Compile .ino and .pde files
directly) these intermediate .cpp files are no longer generated,
breaking the rule to generate .s files.

This fixes this by also generating .s files from .ino and .pde files
directly.

Closes #76
2013-06-19 23:44:36 +02:00
Matthijs Kooijman
a289fd7132 Let the .pde and .ino rules also depend on $(COMMON_DEPS)
In 1f043bb (Compile .ino and .pde files directly), this dependency was
accidentally dropped from these rules.  This fixes this by adding it
again.
2013-06-19 23:44:36 +02:00
Sudar
109693ad68 Release v0.11.0 2013-06-15 19:48:47 +05:30
Sudar
0149f34daf Add an example to show how to compile AVR C files 2013-06-15 19:42:13 +05:30
Sudar
0028fabc64 Add support for compiling plain AVR C files
To compile plain AVR C files, the variable NO_CORE should be initialized
to a non-empty value.

When NO_CORE is set, the following changes happen
- boards.txt file is not parsed. The user should explicitly set MCU,
  F_CPU, fuse bits etc.
- MONITOR_BAUDRATE is not calculated

Fix #63
2013-06-15 19:30:39 +05:30
Sudar
78f2363dd5 Handle cases where certain fuse bits are not present
Introduce two new variables AVRDUDE_ISP_FUSES_PRE and
AVRDUDE_ISP_FUSES_POST which are set based on whether the fuse bits are
present or not.

avrdude is invoked to set fuse bits only if these new variables are not
empty.

Fix #61
2013-06-15 19:23:26 +05:30
Sudar
ac5a087982 Add the ability to configure avrdude options
A new environmental variable AVRDUDE_OPTS is added, which can be used to
configure the options passed to avrdude.

Fix #53
2013-06-15 19:21:48 +05:30
Sudar
93eaaec5ba Add a warning when HEX_MAXIMUM_SIZE is not specified 2013-06-15 19:14:16 +05:30
Sudar
ad417dbf70 Fix whitespace issues 2013-06-15 17:16:47 +05:30
Sudar
b29a0bed2a Replace hardcoded executables with variable 2013-06-15 17:16:27 +05:30
Sudar
cf0b6371c2 Remove traces of time travel ;)
Ref 1012f765fe
2013-06-14 17:57:24 +05:30
Sudar
1012f765fe Tag v0.10.6 for release 2013-06-14 17:49:02 +05:30
Sudar
328800411a Merge pull request #72 from matthijskooijman/indent-fix
Don't indent variable assignments with tabs
2013-06-14 04:24:03 -07:00
Matthijs Kooijman
ffdfa7d170 Don't indent variable assignments with tabs
This causes make to consider the line part of the preceding recipe,
causing the variable to remain unset and the preceding recipe to break.
In this case, this was the recipe for user libraries with .c files,
which is uncommon enough for this to go unnoticed.

This was broken in 3bce1d88 (Allow adding extra common dependencies).
2013-06-14 12:49:12 +02:00
Sudar
60ca7d2852 Move reseting Leonardo logic to ard-reset-arduino
ard-reset-leonardo which was used for reseting Leonardo was written in
Python. Now the logic is added inside the ard-reset-arduino perl script
itself.

Fix #62

Squashed commit of the following:

commit a63366980f
Author: Simon John <git@the-jedi.co.uk>
Date:   Fri Jun 14 11:36:00 2013 +0200

    who put a space in the shebangs?!

commit c798eb26ea
Author: Simon John <git@the-jedi.co.uk>
Date:   Fri Jun 14 11:10:12 2013 +0200

    replaced ard-reset-leonardo with an update to ard-reset-arduino
    which is now called from Arduino.mk with the --leonardo flag

    removed some trailing whitespace

    upped version string in Arduino.mk
2013-06-14 16:09:38 +05:30
Sudar
9b38631d61 Merge pull request #70 from matthijskooijman/libs-fix
Fix directory creation for library source files
2013-06-13 20:12:30 -07:00
Matthijs Kooijman
4e6c776425 Fix directory creation for library source files
In commit 3bce1d88 (Allow adding extra common dependencies), the way
$(OBJDIR) was created changed. Instead of having some ad-hoc mkdir calls
around, all relevant rules were made to depend on the directory instead.

However, this change didn't take into account that the object files for
libraries live instead a subdirectory of $(OBJDIR), which was no longer
automatically created. This made compilation of all libraries fail, on a
clean build directory.

Fixing the rules to depend on $(dir $@) or $(dir %) doesn't work, since
those function calls are expanded by making upon reading the file, not
later when the rule is actually matched.

Therefore, this commit restores the previous explicit mkdir calls for
library object files. The non-library objects files, which do not live
in a subdirectory, still use the dependency approach as before.

Fixes: #58
2013-06-13 23:05:57 +02:00
Simon John
4118af0c42 Make serial baudrate detection work in Mac
Replace regex used for detecting serial baudrate.
New regex is tested in both debian and mountain lion.

fix #52 - serial monitor baudrate detection
2013-06-13 21:02:00 +05:30
Simon John
d8c357f6d6 Change the way AUTO_ARDUINO_VERSION is computed
adds another pass to sed to remove the '1:' from debian version numbers
2013-06-13 17:02:15 +05:30
Sudar
c81cc332f5 Add changelog and start development of v0.10.6 2013-06-13 15:06:58 +05:30
Sudar
206b96c85c Merge pull request #66 from sej7278/d10066072f2df78432f0b577853d533215ca2773
Fix whitespace and add /dev/null redirection
2013-06-13 02:19:36 -07:00
Simon John
d10066072f fixed whitespace and /dev/null redirection 2013-06-13 09:38:27 +02:00
Sudar
e0c8d608de Correct the build directory name in comments 2013-06-12 12:47:34 +05:30
Sudar
2ff244eeaf Release v0.10.5 2013-06-11 16:16:05 +05:30
Sudar
2453f35bae Add todo's and known issues 2013-06-11 15:55:05 +05:30
Sudar
f26a134418 Add support for leonardo.
Leonardo board requires a new way of handling board reset.
There is a new script which does the reset differently for leonardo boards.
close #30 and close #44
2013-06-11 15:46:22 +05:30
Sudar
6759270537 Added example to show how to program using Arduino as ISP. Fixes #55 2013-06-09 17:20:05 +05:30
Sudar
365118e6a5 Enhanced support for programming using Arduino as ISP. Fixes #56 2013-06-09 17:18:12 +05:30
Sudar
2d77e43216 Enhanced config detection messages 2013-06-09 17:13:04 +05:30
Sudar
70986c14f6 Strip extra whitespace from the variable. Fixes #57 2013-06-09 13:12:19 +05:30
Sudar
36c32e75cc Added leonardo support. Took Code from @guicho271828 2013-06-08 17:26:24 +05:30
Sudar
ca49da9f1d Moved comments outside the rule. Otherwise the comments were getting printed 2013-06-08 16:32:43 +05:30
Sudar
11a416e9e9 Fixed some typos in comments 2013-06-06 07:56:08 +05:30
Sudar
722238b95e Reformatted file and changed some wrong tabs into spaces 2013-06-02 21:33:42 +05:30
Sudar
05b15fe67e Added ifndef ARDUINO_VAR_PATH for compiling for the attiny 2013-05-31 19:13:17 +05:30
Sudar
3bce1d88d7 Allow adding extra common dependencies 2013-05-31 18:34:44 +05:30