File tree 2 files changed +16
-16
lines changed
hardware/arduino/avr/cores/arduino
2 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 34
34
35
35
#include " HardwareSerial.h"
36
36
37
+ /*
38
+ * on ATmega8, the uart and its bits are not numbered, so there is no "TXC0"
39
+ * definition. It is slightly cleaner to define this here instead of having
40
+ * conditional code in the cpp module.
41
+ */
42
+ #if !defined(TXC0)
43
+ #if defined(TXC)
44
+ #define TXC0 TXC
45
+ #elif defined(TXC1)
46
+ // Some devices have uart1 but no uart0
47
+ #define TXC0 TXC1
48
+ #else
49
+ #error TXC0 not definable in HardwareSerial.h
50
+ #endif
51
+ #endif
52
+
37
53
// Define constants and variables for buffering incoming serial data. We're
38
54
// using a ring buffer (I think), in which head is the index of the location
39
55
// to which to write the next incoming character and tail is the index of the
Original file line number Diff line number Diff line change @@ -110,22 +110,6 @@ class HardwareSerial : public Stream
110
110
extern HardwareSerial Serial3;
111
111
#endif
112
112
113
- /*
114
- * on ATmega8, the uart and its bits are not numbered, so there is no "TXC0"
115
- * definition. It is slightly cleaner to define this here instead of having
116
- * conditional code in the cpp module.
117
- */
118
- #if !defined(TXC0)
119
- #if defined(TXC)
120
- #define TXC0 TXC
121
- #elif defined(TXC1)
122
- // Some devices have uart1 but no uart0
123
- #define TXC0 TXC1
124
- #else
125
- #error TXC0 not definable in HardwareSerial.h
126
- #endif
127
- #endif
128
-
129
113
extern void serialEventRun (void ) __attribute__((weak));
130
114
131
115
#endif
You can’t perform that action at this time.
0 commit comments