diff options
author | Matthijs Kooijman <matthijs@stdin.nl> | 2014-04-23 14:41:12 +0200 |
---|---|---|
committer | Matthijs Kooijman <matthijs@stdin.nl> | 2015-01-26 17:03:25 +0100 |
commit | 17b9b5373763eb97302a55a9208d35f7abaea217 (patch) | |
tree | cdd36575bf7a593d52d95197376e15bde53b54d2 /bootloaders/caterina-Arduino_Robot/Caterina-Robot.txt | |
parent | 157ec9754003497adaad50a74c16d455a68f342e (diff) |
In SoftwareSerial, use ISR_ALIASOF to prevent duplication
Previously, up to four separate but identical ISR routines were defined,
for PCINT0, PCINT1, PCINT2 and PCINT3. Each of these would generate
their own function, with a lot of push-popping because another function
was called.
Now, the ISR_ALIASOF macro from avr-libc is used to declare just the
PCINT0 version and make all other ISRs point to that one, saving a lot
of program space, as well as some speed because of improved inlining.
On an Arduino Uno with gcc 4.3, this saves 168 bytes. With gcc 4.8, this
saves 150 bytes.
Diffstat (limited to 'bootloaders/caterina-Arduino_Robot/Caterina-Robot.txt')
0 files changed, 0 insertions, 0 deletions