Added Serial Format to settings for Teensyduino boards
This commit is contained in:
parent
d9149d19df
commit
75fb8b90d9
|
|
@ -99,6 +99,10 @@ struct DefaultSettings
|
||||||
Setting this field to 0 will disable sending MIDI active sensing.
|
Setting this field to 0 will disable sending MIDI active sensing.
|
||||||
*/
|
*/
|
||||||
static const uint16_t SenderActiveSensingPeriodicity = 0;
|
static const uint16_t SenderActiveSensingPeriodicity = 0;
|
||||||
|
|
||||||
|
#if defined(TEENSYDUINO)
|
||||||
|
static const uint8_t SerialFormat = SERIAL_8N1;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
END_MIDI_NAMESPACE
|
END_MIDI_NAMESPACE
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,8 @@ 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)
|
||||||
|
mSerial.begin(Settings::BaudRate, SERIAL_8N1_TXINV);
|
||||||
#else
|
#else
|
||||||
mSerial.begin(Settings::BaudRate);
|
mSerial.begin(Settings::BaudRate);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue