aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/HardwareSerial3.cpp
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2014-01-22 10:12:56 +0100
committerCristian Maglie <c.maglie@bug.st>2014-01-22 11:19:35 +0100
commit49fc2ab8ad43b86f7668da8d0186abe0d48cd6d9 (patch)
treee3323394bffeafbbaa3999bb1c5567a548ea7dc7 /cores/arduino/HardwareSerial3.cpp
parent1848db3d66e232b10d7e701063f1238809cf6a53 (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/HardwareSerial3.cpp')
-rw-r--r--cores/arduino/HardwareSerial3.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/cores/arduino/HardwareSerial3.cpp b/cores/arduino/HardwareSerial3.cpp
index 012839d..0140647 100644
--- a/cores/arduino/HardwareSerial3.cpp
+++ b/cores/arduino/HardwareSerial3.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