Skip to content

Commit

Permalink
Portenta: CM4: route Serial to UART1
Browse files Browse the repository at this point in the history
Supersedes arduino#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).
  • Loading branch information
facchinm committed Oct 27, 2020
1 parent 6e557f4 commit 58fee8b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions cores/arduino/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,13 @@ extern analogin_config_t adcCurrentConfig;
#if defined(SERIAL_CDC)
#include "USB/PluggableUSBSerial.h"
#define Serial SerialUSB
#else
#define Serial _UART1_
#endif
#define Serial1 _UART1_
#define Serial2 _UART2_
#define Serial3 _UART3_
#define Serial4 _UART4_
#else
#define Serial _UART1_
#define Serial1 _UART2_
#define Serial2 _UART3_
#define Serial3 _UART4_
#endif

#include "overloads.h"
#endif
Expand Down

0 comments on commit 58fee8b

Please sign in to comment.