Browse Source

define SERIAL_PORT_MONITOR to Serial1 when USB is disabled

main
PaulStoffregen 9 years ago
parent
commit
37e24b0107
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      teensy3/pins_arduino.h

+ 4
- 0
teensy3/pins_arduino.h View File

// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX // SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
// pins are NOT connected to anything by default. // pins are NOT connected to anything by default.
// //
#if F_CPU >= 20000000 && !defined(USB_DISABLED)
#define SERIAL_PORT_MONITOR Serial #define SERIAL_PORT_MONITOR Serial
#else
#define SERIAL_PORT_MONITOR Serial1
#endif
#define SERIAL_PORT_USBVIRTUAL Serial #define SERIAL_PORT_USBVIRTUAL Serial
#define SERIAL_PORT_HARDWARE Serial1 #define SERIAL_PORT_HARDWARE Serial1
#define SERIAL_PORT_HARDWARE1 Serial2 #define SERIAL_PORT_HARDWARE1 Serial2

Loading…
Cancel
Save