From 28fd7f42736527d59c72e4a629dd0e738b1c2949 Mon Sep 17 00:00:00 2001 From: Adrien Fauconnet Date: Mon, 18 Jan 2021 00:17:08 +0000 Subject: [PATCH] Added comments for Teensy Serial formats in Settings --- src/midi_Settings.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/midi_Settings.h b/src/midi_Settings.h index adac941..a4d2716 100644 --- a/src/midi_Settings.h +++ b/src/midi_Settings.h @@ -101,6 +101,19 @@ struct DefaultSettings static const uint16_t SenderActiveSensingPeriodicity = 0; #if defined(TEENSYDUINO) + /*! Teensy supports various Serial data formats. + This allows to use circuits that may require inversion of polarity on the RX, TX + or both signals + + Format Name Data Bits Parity Stop Bits RX Polarity TX Polarity + + SERIAL_8N1 8 None Normal Normal + SERIAL_8N1_RXINV 8 None Inverted Normal + SERIAL_8N1_TXINV 8 None Normal Inverted + SERIAL_8N1_RXINV_TXINV 8 None Inverted Inverted + + Default is SERIAL_8N1 + */ static const uint8_t SerialFormat = SERIAL_8N1; #endif };