aboutsummaryrefslogtreecommitdiff
path: root/variants/standard/pins_arduino.h
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2013-11-11 13:03:21 +0100
committerCristian Maglie <c.maglie@bug.st>2013-11-11 13:03:21 +0100
commit79d9da6058b832e555040cd066192c753f8e6c9e (patch)
treeb2895662bc5ff49a27fd9872ed383abd67b49d93 /variants/standard/pins_arduino.h
parent09fd6d7b0a88c0d0686ef794f1a93197e995d5c0 (diff)
parent2398409fbf90e84ad0bc9d17dda7b9ba7369a998 (diff)
Merge branch 'master' into serial-variant
Diffstat (limited to 'variants/standard/pins_arduino.h')
-rw-r--r--variants/standard/pins_arduino.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/variants/standard/pins_arduino.h b/variants/standard/pins_arduino.h
index 815df3c..3d4a9f6 100644
--- a/variants/standard/pins_arduino.h
+++ b/variants/standard/pins_arduino.h
@@ -217,4 +217,22 @@ const uint8_t PROGMEM digital_pin_to_timer_PGM[] = {
#endif
+// These serial port names are intended to allow libraries and architecture-neutral
+// sketches to automatically default to the correct port name for a particular type
+// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
+// the first hardware serial port whose RX/TX pins are not dedicated to another use.
+//
+// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor
+//
+// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial
+//
+// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library
+//
+// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins.
+//
+// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
+// pins are NOT connected to anything by default.
+#define SERIAL_PORT_MONITOR Serial
+#define SERIAL_PORT_HARDWARE Serial
+
#endif