ok, thanks everyone for that… Now im getting an “error compiling”
Arduino: 1.6.3 (Windows 7), Board: “Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)”
In file included from Marlin.h:44:0,
from BlinkM.cpp:5:
MarlinSerial.h: In member function ‘int MarlinSerial::available()’:
MarlinSerial.h:100:46: error: ‘rx_buffer’ was not declared in this scope
return (unsigned int)(RX_BUFFER_SIZE + rx_buffer.head - rx_buffer.tail) % RX_BUFFER_SIZE;
^
MarlinSerial.h: In member function ‘void MarlinSerial::write(uint8_t)’:
MarlinSerial.h:46:33: error: ‘UCSR5A’ was not declared in this scope
#define M_UCSRxA SERIAL_REGNAME(UCSR,SERIAL_PORT,A) // defines M_UCSRxA to be UCSRnA where n is the serial port number
^
MarlinSerial.h:41:61: note: in definition of macro ‘SERIAL_REGNAME_INTERNAL’
#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix) registerbase##number##suffix
^
MarlinSerial.h:46:18: note: in expansion of macro ‘SERIAL_REGNAME’
#define M_UCSRxA SERIAL_REGNAME(UCSR,SERIAL_PORT,A) // defines M_UCSRxA to be UCSRnA where n is the serial port number
^
MarlinSerial.h:105:17: note: in expansion of macro ‘M_UCSRxA’
while (!((M_UCSRxA) & (1 << M_UDREx)))
^
MarlinSerial.h:51:32: error: ‘UDRE5’ was not declared in this scope
#define M_UDREx SERIAL_REGNAME(UDRE,SERIAL_PORT,)
^
MarlinSerial.h:41:61: note: in definition of macro ‘SERIAL_REGNAME_INTERNAL’
#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix) registerbase##number##suffix
^
MarlinSerial.h:51:17: note: in expansion of macro ‘SERIAL_REGNAME’
#define M_UDREx SERIAL_REGNAME(UDRE,SERIAL_PORT,)
^
MarlinSerial.h:105:35: note: in expansion of macro ‘M_UDREx’
while (!((M_UCSRxA) & (1 << M_UDREx)))
^
MarlinSerial.h:52:31: error: ‘UDR5’ was not declared in this scope
#define M_UDRx SERIAL_REGNAME(UDR,SERIAL_PORT,)
^
MarlinSerial.h:41:61: note: in definition of macro ‘SERIAL_REGNAME_INTERNAL’
#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix) registerbase##number##suffix
^
MarlinSerial.h:52:16: note: in expansion of macro ‘SERIAL_REGNAME’
#define M_UDRx SERIAL_REGNAME(UDR,SERIAL_PORT,)
^
MarlinSerial.h:108:7: note: in expansion of macro ‘M_UDRx’
M_UDRx = c;
^
MarlinSerial.h: In member function ‘void MarlinSerial::checkRx()’:
MarlinSerial.h:46:33: error: ‘UCSR5A’ was not declared in this scope
#define M_UCSRxA SERIAL_REGNAME(UCSR,SERIAL_PORT,A) // defines M_UCSRxA to be UCSRnA where n is the serial port number
^
MarlinSerial.h:41:61: note: in definition of macro ‘SERIAL_REGNAME_INTERNAL’
#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix) registerbase##number##suffix
^
MarlinSerial.h:46:18: note: in expansion of macro ‘SERIAL_REGNAME’
#define M_UCSRxA SERIAL_REGNAME(UCSR,SERIAL_PORT,A) // defines M_UCSRxA to be UCSRnA where n is the serial port number
^
MarlinSerial.h:114:11: note: in expansion of macro ‘M_UCSRxA’
if((M_UCSRxA & (1<<M_RXCx)) != 0) {
^
MarlinSerial.h:55:31: error: ‘RXC5’ was not declared in this scope
#define M_RXCx SERIAL_REGNAME(RXC,SERIAL_PORT,)
^
MarlinSerial.h:41:61: note: in definition of macro ‘SERIAL_REGNAME_INTERNAL’
#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix) registerbase##number##suffix
^
MarlinSerial.h:55:16: note: in expansion of macro ‘SERIAL_REGNAME’
#define M_RXCx SERIAL_REGNAME(RXC,SERIAL_PORT,)
^
MarlinSerial.h:114:26: note: in expansion of macro ‘M_RXCx’
if((M_UCSRxA & (1<<M_RXCx)) != 0) {
^
MarlinSerial.h:52:31: error: ‘UDR5’ was not declared in this scope
#define M_UDRx SERIAL_REGNAME(UDR,SERIAL_PORT,)
^
MarlinSerial.h:41:61: note: in definition of macro ‘SERIAL_REGNAME_INTERNAL’
#define SERIAL_REGNAME_INTERNAL(registerbase,number,suffix) registerbase##number##suffix
^
MarlinSerial.h:52:16: note: in expansion of macro ‘SERIAL_REGNAME’
#define M_UDRx SERIAL_REGNAME(UDR,SERIAL_PORT,)
^
MarlinSerial.h:115:29: note: in expansion of macro ‘M_UDRx’
unsigned char c = M_UDRx;
^
MarlinSerial.h:116:32: error: ‘rx_buffer’ was not declared in this scope
int i = (unsigned int)(rx_buffer.head + 1) % RX_BUFFER_SIZE;
^
Error compiling.
This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.