added checks for teensy2
This commit is contained in:
parent
489ccb770d
commit
8a571257b5
|
|
@ -37,7 +37,7 @@ struct DefaultSerialSettings : public MIDI_NAMESPACE::DefaultSettings
|
||||||
http://projectgus.github.io/hairless-midiserial/
|
http://projectgus.github.io/hairless-midiserial/
|
||||||
*/
|
*/
|
||||||
static const long BaudRate = 31250;
|
static const long BaudRate = 31250;
|
||||||
#if defined(TEENSYDUINO)
|
#if defined(TEENSYDUINO) && !defined(ARDUINO_TEENSY2)
|
||||||
/*! Teensy supports various Serial data formats.
|
/*! Teensy supports various Serial data formats.
|
||||||
Override the default Serial Format to use circuits that may require inversion of
|
Override the default Serial Format to use circuits that may require inversion of
|
||||||
polarity on the RX, TX or both signals.
|
polarity on the RX, TX or both signals.
|
||||||
|
|
@ -74,7 +74,7 @@ public:
|
||||||
// Initialise the Serial port
|
// Initialise the Serial port
|
||||||
#if defined(AVR_CAKE)
|
#if defined(AVR_CAKE)
|
||||||
mSerial. template open<Settings::BaudRate>();
|
mSerial. template open<Settings::BaudRate>();
|
||||||
#elif defined(TEENSYDUINO)
|
#elif defined(TEENSYDUINO) && !defined(ARDUINO_TEENSY2)
|
||||||
mSerial.begin(Settings::BaudRate, Settings::SerialFormat);
|
mSerial.begin(Settings::BaudRate, Settings::SerialFormat);
|
||||||
#else
|
#else
|
||||||
mSerial.begin(Settings::BaudRate);
|
mSerial.begin(Settings::BaudRate);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue