ErikZalm/Marlin — Issue #59: Can't compile for Teensylu
Author: lincomatic
Created: 2012-02-09 07:44:50+00:00
State: open

I set MOTHERBOARD = 8 in Configuration.h.
In Arduino, I compile for Teensy++ 2.0.

I get errors:

In file included from /Marlin.h:38,
from Marlin.cpp:28:
/MarlinSerial.h: In member function 'int MarlinSerial::available()':
MarlinSerial.h:65: error: 'rx_buffer' was not declared in this scope
/MarlinSerial.h: In member function 'void MarlinSerial::write(uint8_t)':
MarlinSerial.h:70: error: 'UCSR0A' was not declared in this scope
MarlinSerial.h:70: error: 'UDRE0' was not declared in this scope
MarlinSerial.h:73: error: 'UDR0' was not declared in this scope
/MarlinSerial.h: In member function 'void MarlinSerial::checkRx()':
MarlinSerial.h:79: error: 'UCSR0A' was not declared in this scope
MarlinSerial.h:79: error: 'RXC0' was not declared in this scope
MarlinSerial.h:80: error: 'UDR0' was not declared in this scope
MarlinSerial.h:81: error: 'rx_buffer' was not declared in this scope
In file included from Marlin.cpp:28:
/Marlin.h: In function 'void serialprintPGM(const char*)':
Marlin.h:91: error: 'MSerial' was not declared in this scope
In file included from Marlin.cpp:37:
/EEPROMwrite.h: In function 'void EEPROM_RetrieveSettings(bool)':
EEPROMwrite.h:182: error: 'MSerial' was not declared in this scope
Marlin.cpp: In function 'void enquecommand(const char*)':
Marlin:209: error: 'MSerial' was not declared in this scope
Marlin.cpp: In function 'void setup()':
Marlin:249: error: 'MSerial' was not declared in this scope
Marlin.cpp: In function 'void get_command()':

Teensy's HardwareSerial.h doesn't define rx_buffer, so that causes the first error.
the compiler's iousbxxx6_7.h which contains register defs for the AT90USB1286 doesn't contain UCSR0A, etc. which causes the other errors