Commit graph

648 commits

Author SHA1 Message Date
Sudar
66ff5ce94e Bump version to v1.5 for release 2015-04-07 21:37:12 +05:30
Sudar Muthu
de21423c9c Merge pull request #342 from sej7278/master
Replace comment about not supporting 1.5 with not supporting SAM
2015-04-06 09:05:55 +05:30
Simon John
1e1f2f6b95 Replace comment about not supporting 1.5 with not supporting SAM
We can probably close issue #45 and maybe open a new one for ARM
SAM support, as 1.6.3 is supported now (and 1.5 is dead).
2015-04-06 01:50:24 +01:00
Sudar
eba20c78c4 Add a note about Arduino.org 2015-04-05 17:14:32 +05:30
Sudar
c4089c02b0 Merge branch 'calvinli-patch-1'
Fix #340
2015-04-04 16:09:10 +05:30
Calvin Li
bc2a9a9798 Fix reset for leonardo
I found that the previous reset code did not work for Leonardo or Micro, nor did any reset code anywhere on the internet.

An examination of the Arduino IDE source code (and the JNI code behind its serial implementation) shows that it holds RTS high and DTR low when doing the 1200 baud open/close. And it turns out that's exactly what's needed!
2015-04-04 16:08:23 +05:30
Sudar
3dce457c6d Make sure pyserial is properly linked 2015-04-04 06:29:44 +05:30
Sudar
467b677d8b Link to Requirements section 2015-04-04 06:27:31 +05:30
Sudar
87a9e7f0cb Tweak pyserial installation instructions 2015-04-04 06:24:39 +05:30
Sudar
10ac2d9c12 Better highlighting for code in README 2015-04-04 06:15:40 +05:30
Sudar Muthu
509a63a721 Merge pull request #339 from sej7278/master
Better autodetection of ARDUINO_SKETCHBOOK and ARDUINO_DIR on OSX
2015-04-04 05:40:51 +05:30
Simon John
c67f07fab8 Better autodetection of ARDUINO_SKETCHBOOK and ARDUINO_DIR on OSX 2015-04-04 00:58:30 +01:00
Simon John
cfe83bca20 Merge pull request #336 from sej7278/master
Added support for VARIANT in submenu's

Also fixed sed issue on OSX (copyright symbol)
2015-03-28 16:34:58 +00:00
Simon John
47395782c3 Replaced UTF-8 copyright symbol causing sed errors on OSX
Fixes issue #335
2015-03-28 16:26:45 +00:00
Simon John
f42a7e6508 Added support for VARIANT in submenu's
Also added a note that in certain 1.6 cores (attiny) F_CPU is
a submenu item e.g. attiny.menu.clock.internal1.build.f_cpu=1000000L
2015-03-28 16:10:06 +00:00
Sudar
861d2ff72f Add a new example to show how serial monitor can be used 2015-03-28 19:40:50 +05:30
Sudar
6f326e6e26 Whitespace fixes in examples 2015-03-28 19:37:49 +05:30
Simon John
d9176a0a64 Merge pull request #334 from sej7278/master
Fixed typo - bracket should be backslash to continue the call to firstword
2015-03-28 12:19:57 +00:00
Simon John
c5e0f5c1ab Fixed typo - bracket should be backslash to continue the call to firstword() 2015-03-28 12:18:38 +00:00
Sudar
16924fe60e Locate 1.5+ preferences.txt file on Mac 2015-03-28 17:26:30 +05:30
Sudar Muthu
1dfcb941b3 Merge pull request #333 from sej7278/master
Add = to PARSE_BOARD regex to make it less greedy.
2015-03-28 17:10:22 +05:30
Simon John
8d52840eb8 Now we know that arduino 1.6.1 uses the ~/.arduino15 directory
we can find preferences.txt

Still need to find out where it looks on OSX/Cygwin
2015-03-27 16:57:45 +00:00
Simon John
ce235b6bb3 Add = to PARSE_BOARD regex to make it less greedy.
For instance in the Sparkfun 1.6 core, we have:

  promicro16.build.vid.0=0x1B4F
  promicro16.build.vid.1=0x1B4F
  promicro16.build.vid=0x1B4F

So we end up matching all 3 instead of just the last one.

Adding the = means we're looking for promicro16.build.vid= so
not catching the .0 or .1 version.
2015-03-27 16:11:27 +00:00
Sudar Muthu
ab06829172 Merge pull request #331 from sej7278/master
Added BOARD_SUB to OBJDIR
2015-03-27 08:54:43 +05:30
Simon John
8606592063 Added BOARD_SUB to OBJDIR so that when changing sub boards we don't accidentally overwrite
existing builds.

E.g. mega1280 and mega2560 previously *both* created a "build-mega" directory,
now they'll create build-mega-mega2560 and build-mega-mega1280

Only applies to 1.5+ of course, and only when BOARD_SUB is used. 1.0 will still
create build-mega2560 and build-mega1280 directories (just BOARD_TAG)
2015-03-26 23:17:05 +00:00
Simon John
ade0589a16 Merge pull request #330 from sej7278/master
Added ARCHITECTURE to ALTERNATE_CORE_PATH to support 1.5+ cores
2015-03-25 22:41:12 +00:00
Simon John
356f5b3e04 Added ARCHITECTURE to ALTERNATE_CORE_PATH to support 1.5+ cores like arduino-tiny.
arduino-tiny and damellis' attiny85 cores don't use a vendor, but they
do use the avr architecture (subdirectory) in their 1.5/1.6 branches.

arduino-tiny builds and is auto-detected now, still needs some
work to support sub-cpu's and clocks.

damellis doesn't compile, but that's not our makefile it seems.
2015-03-25 19:29:21 +00:00
Sudar Muthu
43e5f03746 Merge pull request #329 from sej7278/master
Added search of PLATFORM_LIB_NAMES to ARDUINO_LIBS
2015-03-25 17:42:19 +05:30
Simon John
495a0b8f91 Always forgetting the history! 2015-03-25 12:10:13 +00:00
Simon John
f6c69c9155 Added search of PLATFORM_LIB_NAMES to ARDUINO_LIBS so that Wire.h is found on 1.6.1 and its output separately to SYS_LIB_NAMES
Added "sort" to the USER/SYS/PLATFORM _LIBS so we don't get duplicates
2015-03-25 11:58:19 +00:00
Sudar
ea67b57949 Add credit to the contributors 2015-03-14 15:41:30 +05:30
Sudar Muthu
fb94c84bff Merge pull request #322 from onandoffables/linuxgpio
Add "linuxgpio" to the list of ISP's that don't have a port
2015-02-27 14:32:03 +05:30
onandoffables
79ea7e222f Add "linuxgpio" to the list of ISP's that don't have a port 2015-02-26 21:17:53 +01:00
Sudar
64145418f3 Give credit to @fbielejec for #321 2015-02-25 14:58:27 +05:30
Sudar Muthu
dddce32ef8 Merge pull request #321 from fbielejec/master
instructions on setting CodeBlocks IDE to use the makefiles
2015-02-25 14:56:02 +05:30
filip
1ec5e6c253 instructions on setting CodeBlocks IDE to use the makefiles 2015-02-25 09:34:21 +01:00
poofjunior
d535bf5fde Ability to modify USB_TYPE in Teensy.md
See #313
2015-01-23 15:42:13 +05:30
Sudar
27ed197acc Merge pull request #315 from sej7278/master
Get all the commits before #313
2015-01-23 15:23:55 +05:30
Simon John
a6505e6da8 Change CXX_NAME to CXX as per the EmacsWiki for Flymake instructions.
Makes it a bit more standard too.
2015-01-01 01:25:23 +00:00
Sudar
cfd6af90fb Merge pull request #307 from Gaboose/pr
Ease flashing through ssh. Tweak alternate core support. #306 rebased
2014-12-31 11:16:59 +05:30
Gabrielius Mickevicius
e639f81b6c Fix build.core parsing
Disregard anything before first colon.
E.g. build.core = arduino:arduino results in CORE = arduino
Print CORE.
2014-12-30 17:45:36 +02:00
Gabrielius Mickevicius
de602e8b61 Typo 2014-12-30 17:45:36 +02:00
Gabrielius Mickevicius
6d549c89aa Tidy new arduino mk vars
Add CORE and FORCE_MONITOR_PORT to arduino-mk-vars.md and FORCE_MONITOR_PORT
to config print.
2014-12-30 17:45:36 +02:00
Gabrielius Mickevicius
4b4592ac3e Note on using root in BlinkNetworkRPi 2014-12-30 17:45:36 +02:00
Gabrielius Mickevicius
ecb05452f7 Update changelog 2014-12-30 17:45:36 +02:00
Gabrielius Mickevicius
a930c9983f Example: set fuses and upload hex on remote programmer
Implements two new make rules: 'net_set_fuses' executes a single
ssh command, 'net_upload' pipes hex through ssh connection.

The example also showcases the FORCE_MONITOR_PORT feature.
2014-12-30 17:45:36 +02:00
Gabrielius Mickevicius
3442ef8e6d Let 'build.core' from boards.txt change ARDUINO_CORE_PATH
This is support for https://code.google.com/p/arduino-tiny
The arduino-tiny project provides a boards.txt file and a whole
separate Arduino core modified to work with attinies.
Arduino.mk will now switch to that core if it finds a
'build.core' parameter in boards.txt and a folder in
$(ALTERNATE_CORE_PATH)/cores by that name.
2014-12-30 17:45:36 +02:00
Gabrielius Mickevicius
3754e5c012 Let user skip MONITOR_PORT existance check
Define FORCE_MONITOR_PORT to enable.
Useful if one uses 'ssh root@remotemachine avrdude' instead of the
usual AVRDUDE command.
2014-12-28 23:26:35 +02:00
Sudar
dcc7512284 Merge pull request #304 from phord/master
Do not add '.' to gcc includes search path
2014-12-08 19:33:16 +05:30
Phil Hord
d998de8d84 Do not add '.' to gcc includes search path
Include files are searched for in the include search path made up
from, among other places, the -I switches given to the gcc compiler.
The . (dot) used for the current directory is not in the search
path when the IDE builds the project and does not seem to be needed
in any reasonable case.  Maybe it was included because someone thought
it meant to "search in the same directory as the file being compiled",
but I cannot tell because the switch was already included in the first
commit in this repo.  In any case, the current file directory is already
searched by gcc before the search path is consulted, in any case, so
this switch is not needed to cause this behavior.

Including the "-I."  switch causes compiles to fail when libraries
include a header which is coincidentally named the same as one of the
user headers.  For example, if the user has a Udp.h file in his sketch
folder, the compile will fail if it includes the EthernetUdp.h file.

A simple example is the examples/WebServer code. It fails if you do
this:

   touch examples/WebServer/Udp.h
   make -C examples/WebServer

But it builds ok from the IDE which does not include "." in the
search path.

Similarly, HelloWorld fails for the same reason if you do this:

   touch examples/HelloWorld/Print.h
   make -C examples/HelloWorld

Remove the -I. switch from the CPPFLAGS directive altogether to
prevent this include filename confusion and to more closely model
the behavior of the IDE.  Fixes #303.

It may also work to move the -I. to the end of the search path,
but this still would compile differently from the IDE and so it
is considered not to be a useful feature to retain in any case.

--

I did not add a test case here because it's not clear to me how it
should be added.  Should I modify HelloWorld as described above,
or should I add examples/TestSearchPath/ with the same files
explicitly for this test?  It would be clearer for me if there
was an explicit "tests" directory independent from "examples".
2014-12-07 18:53:03 -05:00