1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-04 15:24:12 +01:00
Commit Graph

4647 Commits

Author SHA1 Message Date
Federico Fissore
7211eb0156 Merge pull request #2675 from PaulStoffregen/master
Update status bar when custom menus change
2015-02-23 10:39:22 +01:00
Federico Fissore
c0122d1068 Merge pull request #2618 from ffissore/fix-ethernetclient-boolean-comparison
EthernetClient == and != operators
2015-02-23 08:44:38 +01:00
PaulStoffregen
3bd694d78b Update status bar when custom menus change 2015-02-22 03:54:44 -08:00
Cristian Maglie
606604d7d6 Update revision log. Version set to 1.6.1. 2015-02-19 18:22:43 +01:00
Federico Fissore
0b6e274b5d Bridge.ino example: comment fixed 2015-02-19 18:08:15 +01:00
Federico Fissore
947951dcba Merge pull request #2658 from ffissore/better-yun-discovery
An attempt to improve Yun's discovery
2015-02-19 16:42:44 +01:00
Federico Fissore
0990f98b14 InetAddress.isReachable is reported reliable on mac and recent java versions
Refactored NetUtils.isReachable to two functions:
isReachableByEcho and isPortOpen
If the first one will fail, the second one will be used
2015-02-19 09:34:32 +01:00
Federico Fissore
3fec636b29 An attempt to improve Yun's discovery. Thanks @roadfun. See #2576 2015-02-19 09:15:23 +01:00
Cristian Maglie
bedc550b5e Merge pull request #2648 from cmaglie/fix-objcopy-recipes
"objcopy" recipes are no more tied to "hex" extension
2015-02-18 11:19:24 +01:00
Cristian Maglie
a39364193f "objcopy" recipes are no more tied to "hex" extension
This allow to define specific recipes for every platform
but keeps backward compatibility.

See #2614
2015-02-16 14:39:55 +01:00
Federico Fissore
804112a033 Merge pull request #2644 from Moredread/Moredread-patch-1
Fix spelling in YunSerialTerminal
2015-02-16 14:15:51 +01:00
Moredread
256f39b4d8 Fix spelling in YunSerialTerminal 2015-02-14 19:00:15 +01:00
Federico Fissore
c0c9314077 build.xml: fixed wrong order of conditions for autodetecting macosx version 2015-02-13 19:36:50 +01:00
Federico Fissore
eb0c2c9baa Added virtual bool operator==(const bool value) and virtual bool operator!=(const bool value).
Fixes #2611
Bug introduced with #1700
2015-02-13 17:29:36 +01:00
Cristian Maglie
cf3e9480a5 Merge pull request #2626 from ffissore/hide-cu-devs-on-mac
Macosx: filter out /dev/cu* ports
2015-02-13 15:49:27 +01:00
Federico Fissore
5687528325 Fixed bug introduced by #2628 2015-02-13 15:30:43 +01:00
Federico Fissore
a49963d0ad Filter out /dev/cu* ports, can be re-enabled manually adding "serial.ports.showall=true" into preferences.txt file
Closes #2624
2015-02-13 10:53:12 +01:00
Cristian Maglie
00941453db Merge pull request #2628 from ffissore/split-ports-by-category
Split ports in menu, grouping boards by their protocol
2015-02-13 10:49:57 +01:00
Cristian Maglie
834593d2ea Merge pull request #2568 from ffissore/rebased-atmel-toolchain-3.4.5
Introducing Atmel toolchain 3.4.5
2015-02-13 10:39:30 +01:00
Federico Fissore
5ed19fd222 Newer toolchains don't depend on cygwin any more 2015-02-13 09:36:30 +01:00
Federico Fissore
d7db2cd174 Introducing Atmel toolchain 3.4.5: see https://github.com/arduino/toolchain-avr 2015-02-13 09:36:30 +01:00
Federico Fissore
e76d413454 When build.core is not defined, fall back to "arduino". Fixes #2635 2015-02-12 17:27:58 +01:00
Federico Fissore
ff6fb31f4a Merge pull request #2582 from cmaglie/fix-underscore-glitch
Fixed incorrect boards.txt preference handling when submenu id has underscore
2015-02-11 16:42:46 +01:00
Federico Fissore
fea3848ee0 Split ports in menu, grouping boards by their protocol
Closes #2627
2015-02-11 13:08:20 +01:00
Federico Fissore
5128a062d8 Merge pull request #2614 from championswimmer/ide-1.6.0-renamerecipe
rename hex -> output
2015-02-10 10:27:54 +01:00
Arnav Gupta
79a74aa667 rename hex -> output
using generic term 'output', because for samx32,
output is .bin format and not .hex

Signed-off-by: Arnav Gupta <championswimmer@gmail.com>
2015-02-10 04:31:51 +05:30
Cristian Maglie
fc825537fd Updated revision log 2015-02-08 19:49:27 +01:00
Cristian Maglie
71c3948918 Updated translations 2015-02-08 19:49:27 +01:00
Cristian Maglie
c4cd447283 Updated offline docs 2015-02-08 19:49:27 +01:00
Cristian Maglie
e93be4855f Corrected some email contacts. 2015-02-05 16:47:22 +01:00
Federico Fissore
7adaba5630 MacOS tests fix: new way of discovering work dir conflicts with tests execution. Fixed. 2015-02-03 17:00:51 +01:00
Federico Fissore
eaf4db5da8 Updated build_pull_request.bash 2015-02-03 15:50:50 +01:00
Cristian Maglie
e8fa4211b3 Renamed mac build from "macosxnew" to "macosx-java-latest" 2015-02-03 13:17:35 +01:00
Cristian Maglie
7e568e21f4 Updated revision log. Version set to 1.6.0rc3 2015-02-03 12:12:09 +01:00
Federico Fissore
3303774844 build.xml and mac. Change in platform names: macosx now macosxnew, oldmacosx now macosx 2015-02-03 11:53:48 +01:00
Federico Fissore
ce911788eb Fixed bug with paths with spaces 2015-02-02 15:30:34 +01:00
Federico Fissore
7f6cf5d7ef build_pull_requests now builds oldmacosx as well 2015-02-02 09:54:08 +01:00
Federico Fissore
d460982623 Macosx: new appbundler, new macosx builds. Use platform=macosx and platform=oldmacosx 2015-02-02 09:53:56 +01:00
Federico Fissore
d61568a8be build_pull_requests now moves the artifacts to the parent folder: this allows calling "clean" target before each build 2015-02-02 09:51:49 +01:00
Federico Fissore
f7bc69a301 build.xml linux-clean target was not deleting old linux builds 2015-01-31 19:32:24 +01:00
Federico Fissore
70e3fb1cc5 Merge pull request #2588 from jogo-/patch-1
Fix typos in BlinkWithoutDelay.ino
2015-01-30 10:20:09 +01:00
jogo-
351cfbbab1 Fix typos in BlinkWithoutDelay.ino 2015-01-28 23:11:51 +01:00
Cristian Maglie
e360f82cae Fixed incorrect boards.txt preference handling when submenu id has underscore
Fixes #2533
2015-01-27 20:22:22 +01:00
Matthijs Kooijman
90ca3934f2 Prevent low pulse on TX initialization in SoftwareSerial
Previously, the TX pin would be set to output first and then written
high (assuming non-inverted logic). When the pin was previously
configured for input without pullup (which is normal reset state), this
results in driving the pin low for a short when initializing. This could
accidenttally be seen as a stop bit by the receiving side.

By first writing HIGH and then setting the mode to OUTPUT, the pin will
have its pullup enabled for a short while, which is harmless.
2015-01-26 17:04:26 +01:00
Matthijs Kooijman
9cf3740a03 Remove unneeded #ifdef in SoftwareSerial
The debugPulse function definition already checks for _DEBUG, resulting
in an empty function definiton and the function call being optimized
away.
2015-01-26 17:03:25 +01:00
Matthijs Kooijman
ead2881b1c Fix SoftwareSerial timings
Instead of using a lookup table with (wrong) timings, this calculates
the timings in SoftwareSerial::begin. This is probably a bit slower, but
since it typically happens once, this shouldn't be a problem.
Additionally, since the lookup tables can be removed, this is also a lot
smaller, as well as supporting arbitrary CPU speeds and baudrates,
instead of the limited set that was defined before.

Furthermore, this switches to use the _delay_loop_2 function from
avr-libc instead of a handcoded delay function. The avr-libc function
only takes two instructions, as opposed to four instructions for the old
one. The compiler also inlines the avr-libc function, which makes the
timings more reliable.

The calculated timings directly rely on the instructions generated by
the compiler, since a significant amount of time is spent processing
(compared to the delays, especially at higher speeds). This means that
if the code is changed, or a different compiler is used, the
calculations might need changing (though a few cycles more or less
shouldn't cause immediate breakage).

The timings in the code have been calculated from the assembly generated
by gcc 4.8.2 and gcc 4.3.2.

The RX baudrates supported by SoftwareSerial are still not unlimited. At
16Mhz, using gcc 4.8.2, everything up to 115200 works. At 8Mhz, it works
up to 57600. Using gcc 4.3.2, it also works up to 57600 at 16Mhz and up
to 38400 at 8Mhz. Note that at these highest speeds, communication
works, but is still quite sensitive to other interrupts (like the
millis() interrupts) when bytes are sent back-to-back, so there still
are corrupted bytes in RX.

TX works up to 115200 for all combinations of compiler and clock rates.

This fixes #2019
2015-01-26 17:03:25 +01:00
Matthijs Kooijman
08fa593916 Disable the RX PCINT inside SoftwareSerial::recv
Before, the interrupt would remain enabled during reception, which would
re-set the PCINT flag because of the level changes inside the received
byte. Because interrupts are globally disabled, this would not
immediately trigger an interrupt, but the flag would be remembered to
trigger another PCINT interrupt immediately after the first one is
processed.

Typically this was not a problem, because the second interrupt would see
the stop bit, or an idle line, and decide that the interrupt triggered
for someone else. However, at high baud rates, this could cause the
next interrupt for the real start bit to be delayed so much that the
byte got corrupted.

By clearing the interrupt mask bit for just the RX pin (as opposed to
the PCINT mask bit for the entire port), any PCINT events on other bits
can still set the PCINT flag and be processed as normal. In this case,
it's likely that there will be corruption, but that's inevitable when
(other) interrupts happen during SoftwareSerial reception.
2015-01-26 17:03:25 +01:00
Matthijs Kooijman
ce6b0f89e3 Optimize SoftwareSerial::setRxIntMsk()
This precalculates the mask register and value, making setRxIntMask
considerably less complicated. Right now, this is not a big deal, but
simplifying it allows using it inside the ISR next.
2015-01-26 17:03:25 +01:00
Matthijs Kooijman
ddbe3174f0 In SoftwareSerial::recv, only calculate the new tail once
This shortens the generated code a bit more.
2015-01-26 17:03:25 +01:00
Matthijs Kooijman
9d8f350ffe Mark SoftwareSerial::recv and handle_interrupt as always_inline
Since those functions are only called once now, it makes sense to inline
them. This saves a few bytes of program space, but also saves a few
cycles in the critical RX path.
2015-01-26 17:03:25 +01:00