File tree 1 file changed +12
-3
lines changed
examples/NonReg/SerialLoop
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 12
12
13
13
/*
14
14
* 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'!
17
17
* 3 - Optionnal: comment unwanted speed in serialSpeed array.
18
18
*/
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
+
19
29
#define DECL_CONFIG (x ) {#x, x}
20
- #define SERIAL_PORT_TESTED Serial3
21
30
22
31
typedef struct serialTest_s serialTest;
23
32
struct serialTest_s {
You can’t perform that action at this time.
0 commit comments