#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
// this next line disables the entire HardwareSerial.cpp, // this is so I can support Attiny series and any other chip without a uart#if defined(UBRRH) || defined(UBRR0H) || defined(UBRR1H) || defined(UBRR2H) || defined(UBRR3H)
... , when gcc compiles the program, it compiles all visible cpp files - which means all cpp files in the core. If you don't include the associated header files (or cpp files themselves) anywhere in your code, the files and code associated will be scrubbed by the linker.
gcc only compiles what it is told to compile. The IDE is the one that tells gcc what to compile.
Any help would be appreciated. Is there a more up-to-date Attiny85 core?