Go to file
Matthijs Kooijman 157ec97540 Optimize SoftwareSerial::recv
Similar to SoftwareSerial::write, this rewrites the loop to only touch
the MSB and then shift those bits up, allowing the compiler to generate
more efficient code. Unlike the write function however, it is not needed
to put all instance variables used into local variables, for some reason
the compiler already does this (and doing it manually even makes the
code bigger).

On the Arduino Uno using gcc 4.3 this saves 26 bytes. Using gcc 4.8 this
saves 30 bytes.

Note that this removes the else clause in the code, making the C code
unbalanced, which looks like it breaks timing balance. However, looking
at the code generated by the compiler, it turns out that the old code
was actually unbalanced, while the new code is properly balanced.
2015-01-26 17:03:25 +01:00
bootloaders merge 2013-10-14 12:42:42 +02:00
cores/arduino Temporary fix for pulseIn() regression. 2015-01-18 17:34:40 +01:00
firmwares Merge branch 'master' into ide-1.5.x 2014-09-16 12:19:39 +02:00
libraries Optimize SoftwareSerial::recv 2015-01-26 17:03:25 +01:00
variants Merge branch 'master' into ide-1.5.x 2014-02-12 17:17:33 +01:00
boards.txt set correct max size for mega2560 2014-09-20 03:09:54 +05:30
platform.txt Upped version to 1.6.0 2014-11-18 14:48:01 +01:00
programmers.txt added support for the ArduinoISP 2014-07-02 15:03:12 +02:00