From e46375c0891e047796056ca693be8985a445a4d7 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Fri, 20 Nov 2015 12:08:35 +0100 Subject: [PATCH] Added SerialUSB alias for Serial on 32u4 boards --- build/shared/revisions.txt | 1 + hardware/arduino/avr/variants/leonardo/pins_arduino.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/build/shared/revisions.txt b/build/shared/revisions.txt index 0a59f5f86..7c00a17b6 100644 --- a/build/shared/revisions.txt +++ b/build/shared/revisions.txt @@ -15,6 +15,7 @@ ARDUINO 1.6.7 [core] * Fixed wrong timings for HardwareSerial::flush() in SAM core. Thanks @borisff +* Leonardo/Micro (and other atmega32u4 based boards) now have SerialUSB alias for Serial ARDUINO 1.6.6 - 2015.11.03 diff --git a/hardware/arduino/avr/variants/leonardo/pins_arduino.h b/hardware/arduino/avr/variants/leonardo/pins_arduino.h index 89b880655..115974eaf 100644 --- a/hardware/arduino/avr/variants/leonardo/pins_arduino.h +++ b/hardware/arduino/avr/variants/leonardo/pins_arduino.h @@ -356,4 +356,7 @@ const uint8_t PROGMEM analog_pin_to_channel_PGM[] = { #define SERIAL_PORT_HARDWARE Serial1 #define SERIAL_PORT_HARDWARE_OPEN Serial1 +// Alias SerialUSB to Serial +#define SerialUSB SERIAL_PORT_USBVIRTUAL + #endif /* Pins_Arduino_h */