diff options
author | Cristian Maglie <c.maglie@bug.st> | 2014-01-22 10:12:56 +0100 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2014-01-22 11:19:35 +0100 |
commit | 49fc2ab8ad43b86f7668da8d0186abe0d48cd6d9 (patch) | |
tree | e3323394bffeafbbaa3999bb1c5567a548ea7dc7 /cores/arduino/HardwareSerial0.cpp | |
parent | 1848db3d66e232b10d7e701063f1238809cf6a53 (diff) |
Inlined HardwareSerial calls to RX ISR.
Moreover, declaring pointers-to-registers as const and using initializer
list in class constructor allows the compiler to further improve inlining
performance.
This change recovers about 50 bytes of program space on single-UART devices.
See #1711
Diffstat (limited to 'cores/arduino/HardwareSerial0.cpp')
-rw-r--r-- | cores/arduino/HardwareSerial0.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cores/arduino/HardwareSerial0.cpp b/cores/arduino/HardwareSerial0.cpp index dd4d806..efbd527 100644 --- a/cores/arduino/HardwareSerial0.cpp +++ b/cores/arduino/HardwareSerial0.cpp @@ -1,5 +1,6 @@ #include "Arduino.h" #include "HardwareSerial.h" +#include "HardwareSerial_private.h" // Each HardwareSerial is defined in its own file, sine the linker pulls // in the entire file when any element inside is used. --gc-sections can |