1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

Merge pull request #2145 from matthijskooijman/ide-1.5.x-hardwareserial-atmega8

Support Atmega8 (and similar that define PE instead of UPE) again
This commit is contained in:
Cristian Maglie
2014-06-27 10:09:35 +02:00

View File

@ -34,6 +34,11 @@
// slower. // slower.
#if !defined(TXC0) #if !defined(TXC0)
#if defined(TXC) #if defined(TXC)
// Some chips like ATmega8 don't have UPE, only PE. The other bits are
// named as expected.
#if !defined(UPE) && defined(PE)
#define UPE PE
#endif
// On ATmega8, the uart and its bits are not numbered, so there is no TXC0 etc. // On ATmega8, the uart and its bits are not numbered, so there is no TXC0 etc.
#define TXC0 TXC #define TXC0 TXC
#define RXEN0 RXEN #define RXEN0 RXEN