Skip to content

Commit 58fee8b

Browse files
committed
Portenta: CM4: route Serial to UART1
Supersedes #54 When we'll have full support for SerialRPC we can simply replace that line (still need to understand how to notify the error in case CM7 is missing the "companion" code).
1 parent 6e557f4 commit 58fee8b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Diff for: cores/arduino/Arduino.h

+3-6
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,13 @@ extern analogin_config_t adcCurrentConfig;
130130
#if defined(SERIAL_CDC)
131131
#include "USB/PluggableUSBSerial.h"
132132
#define Serial SerialUSB
133+
#else
134+
#define Serial _UART1_
135+
#endif
133136
#define Serial1 _UART1_
134137
#define Serial2 _UART2_
135138
#define Serial3 _UART3_
136139
#define Serial4 _UART4_
137-
#else
138-
#define Serial _UART1_
139-
#define Serial1 _UART2_
140-
#define Serial2 _UART3_
141-
#define Serial3 _UART4_
142-
#endif
143140

144141
#include "overloads.h"
145142
#endif

0 commit comments

Comments
 (0)