mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-29 18:52:13 +01:00
Fixing ATmega8 breakage from flush() change. (WestFW)
http://code.google.com/p/arduino/issues/detail?id=1019
This commit is contained in:
parent
222d51e383
commit
24c8bf8081
@ -81,6 +81,15 @@ class HardwareSerial : public Stream
|
|||||||
extern HardwareSerial Serial3;
|
extern HardwareSerial Serial3;
|
||||||
#endif
|
#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));
|
extern void serialEventRun(void) __attribute__((weak));
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user