aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2012-08-29 20:52:30 -0400
committerDavid A. Mellis <d.mellis@arduino.cc>2012-08-29 20:52:30 -0400
commit912092b03fddf38789ec680da4e619bedccaf559 (patch)
tree960565fd283343ac5a7e234d36e6eeda00a22e94 /cores/arduino
parentc29b408a9d420f1850b6c6692f37d11b22e7bedb (diff)
Fixing ATmega8 breakage from flush() change. (WestFW)
http://code.google.com/p/arduino/issues/detail?id=1019
Diffstat (limited to 'cores/arduino')
-rw-r--r--cores/arduino/HardwareSerial.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cores/arduino/HardwareSerial.h b/cores/arduino/HardwareSerial.h
index 9a42773..eadaaa7 100644
--- a/cores/arduino/HardwareSerial.h
+++ b/cores/arduino/HardwareSerial.h
@@ -81,6 +81,15 @@ 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)
+#define TXC0 TXC
+#endif
+
extern void serialEventRun(void) __attribute__((weak));
#endif