diff options
author | David A. Mellis <d.mellis@arduino.cc> | 2012-11-29 13:48:01 -0500 |
---|---|---|
committer | David A. Mellis <d.mellis@arduino.cc> | 2012-12-08 10:44:48 -0500 |
commit | c4337d812b22bc1746f579b416daba5013a43757 (patch) | |
tree | e27f66e8a8795664e22fd6aff9b504f340b2a0f0 /cores/arduino/HardwareSerial.h | |
parent | f8568cff0b61337f54c068233ff7429145cad18a (diff) |
Moving TXCO definition into HardwareSerial.cpp from HardwareSerial.h.
Otherwise, you get an error when compiling for processors with no serial port because the header file is always compiled.
See, for an example of the problem: https://github.com/damellis/attiny/issues/8
Diffstat (limited to 'cores/arduino/HardwareSerial.h')
-rw-r--r-- | cores/arduino/HardwareSerial.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/cores/arduino/HardwareSerial.h b/cores/arduino/HardwareSerial.h index 2b1de91..a73117f 100644 --- a/cores/arduino/HardwareSerial.h +++ b/cores/arduino/HardwareSerial.h @@ -110,22 +110,6 @@ class HardwareSerial : public Stream extern HardwareSerial Serial3; #endif -/* - * on ATmega8, the uart and its bits are not numbered, so there is no "TXC0" - * definition. It is slightly cleaner to define this here instead of having - * conditional code in the cpp module. - */ -#if !defined(TXC0) -#if defined(TXC) -#define TXC0 TXC -#elif defined(TXC1) -// Some devices have uart1 but no uart0 -#define TXC0 TXC1 -#else -#error TXC0 not definable in HardwareSerial.h -#endif -#endif - extern void serialEventRun(void) __attribute__((weak)); #endif |