From 49fc2ab8ad43b86f7668da8d0186abe0d48cd6d9 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Wed, 22 Jan 2014 10:12:56 +0100 Subject: 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 --- cores/arduino/HardwareSerial0.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'cores/arduino/HardwareSerial0.cpp') 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 -- cgit v1.2.3-18-g5258