File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
examples/NonReg/SerialLoop Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 1212
1313/*
1414 * 1 - Connect Rx/Tx of the desired Serial
15- * 2 - Define SERIAL_PORT_TESTED by settinh Serial number to use 1,2,...
16- * ! Ensure this Serialx is enabled thanks 'Serial interface menu'!
15+ * 2 - Define SERIAL_PORT_TESTED by setting Serial number to use 1,2,...
16+ * ! Ensure Serial feature is enabled thanks 'Serial interface menu'!
1717 * 3 - Optionnal: comment unwanted speed in serialSpeed array.
1818 */
19+ #if defined(SERIAL_UART_INSTANCE) && (SERIAL_UART_INSTANCE == 2)
20+ #define SERIAL_PORT_TESTED Serial1
21+ HardwareSerial Serial1 (USART1);
22+ #else
23+ #define SERIAL_PORT_TESTED Serial2
24+ HardwareSerial Serial2 (USART2);
25+ #endif
26+ // or
27+ // HardwareSerial Serialx(rxpin, txpin)
28+
1929#define DECL_CONFIG (x ) {#x, x}
20- #define SERIAL_PORT_TESTED Serial3
2130
2231typedef struct serialTest_s serialTest;
2332struct serialTest_s {
You can’t perform that action at this time.
0 commit comments