We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24c8bf8 commit cd43ca3Copy full SHA for cd43ca3
hardware/arduino/cores/arduino/HardwareSerial.h
@@ -87,7 +87,14 @@ class HardwareSerial : public Stream
87
* conditional code in the cpp module.
88
*/
89
#if !defined(TXC0)
90
+#if defined(TXC)
91
#define TXC0 TXC
92
+#elif defined(TXC1)
93
+// Some devices have uart1 but no uart0
94
+#define TXC0 TXC1
95
+#else
96
+#error TXC0 not definable in HardwareSerial.h
97
+#endif
98
#endif
99
100
extern void serialEventRun(void) __attribute__((weak));
0 commit comments