I have and happily working i3 Prusa and she works almost every day.
Since I'm having a little more time, I thought I could try to revive my old Prusa I've built a few years back.
It has a RAMPS v1.2 and I'm having problems in the very first part: ARDUINO.
For starters I get the Marlin version I use on my Prusa i3, and upload it to my old printer with no errors.
Of course it does not work, because for one the RAMPs board is set for v1.4 I use on my i3.
So... I get into arduino and just simple change "#define MOTHERBOARD 33" to "#define MOTHERBOARD 3"
and.. the problems start... I get a bunch of compiling problems...
In fact, any little change I made on the firmware (just one character ) and I find this wall.
I tried several Arduino Versions with the same result.
Any help would be much appreciated.
Here is the error log:
Arduino: 1.6.2 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega1280"
dogm_lcd_implementation.h:603:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,HIGH);
^
fastio.h:30:40: error: 'DIOBEEPER_WPORT' was not declared in this scope
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
dogm_lcd_implementation.h:603:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,HIGH);
^
fastio.h:30:69: error: 'DIOBEEPER_PIN' was not declared in this scope
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
dogm_lcd_implementation.h:603:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,HIGH);
^
fastio.h:30:97: error: 'DIOBEEPER_WPORT' was not declared in this scope
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
dogm_lcd_implementation.h:603:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,HIGH);
^
fastio.h:30:127: error: 'DIOBEEPER_PIN' was not declared in this scope
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
dogm_lcd_implementation.h:603:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,HIGH);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:45:36: error: 'DIOBEEPER_RPORT' was not declared in this scope
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
dogm_lcd_implementation.h:605:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,LOW);
^
fastio.h:34:43: error: 'DIOBEEPER_WPORT' was not declared in this scope
{DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); }\
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
dogm_lcd_implementation.h:605:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,LOW);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:34:72: error: 'DIOBEEPER_PIN' was not declared in this scope
{DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); }\
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
dogm_lcd_implementation.h:605:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,LOW);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:39:43: error: 'DIOBEEPER_WPORT' was not declared in this scope
{DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }\
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
dogm_lcd_implementation.h:605:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,LOW);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:39:73: error: 'DIOBEEPER_PIN' was not declared in this scope
{DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }\
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
dogm_lcd_implementation.h:605:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,LOW);
^
fastio.h:30:40: error: 'DIOBEEPER_WPORT' was not declared in this scope
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
dogm_lcd_implementation.h:605:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,LOW);
^
fastio.h:30:69: error: 'DIOBEEPER_PIN' was not declared in this scope
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
dogm_lcd_implementation.h:605:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,LOW);
^
fastio.h:30:97: error: 'DIOBEEPER_WPORT' was not declared in this scope
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
dogm_lcd_implementation.h:605:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,LOW);
^
fastio.h:30:127: error: 'DIOBEEPER_PIN' was not declared in this scope
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
dogm_lcd_implementation.h:605:5: note: in expansion of macro 'WRITE'
WRITE(BEEPER,LOW);
^
ultralcd.cpp: In function 'void lcd_init()':
ultralcd.cpp:1141:13: error: 'BTN_EN1' was not declared in this scope
pinMode(BTN_EN1,INPUT);
^
ultralcd.cpp:1142:13: error: 'BTN_EN2' was not declared in this scope
pinMode(BTN_EN2,INPUT);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:45:36: error: 'DIOBTN_EN1_RPORT' was not declared in this scope
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
ultralcd.cpp:1143:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN1,HIGH);
^
fastio.h:34:43: error: 'DIOBTN_EN1_WPORT' was not declared in this scope
{DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); }\
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
ultralcd.cpp:1143:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN1,HIGH);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:34:72: error: 'DIOBTN_EN1_PIN' was not declared in this scope
{DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); }\
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
ultralcd.cpp:1143:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN1,HIGH);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:39:43: error: 'DIOBTN_EN1_WPORT' was not declared in this scope
{DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }\
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
ultralcd.cpp:1143:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN1,HIGH);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:39:73: error: 'DIOBTN_EN1_PIN' was not declared in this scope
{DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }\
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
ultralcd.cpp:1143:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN1,HIGH);
^
fastio.h:30:40: error: 'DIOBTN_EN1_WPORT' was not declared in this scope
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
ultralcd.cpp:1143:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN1,HIGH);
^
fastio.h:30:69: error: 'DIOBTN_EN1_PIN' was not declared in this scope
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
ultralcd.cpp:1143:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN1,HIGH);
^
fastio.h:30:97: error: 'DIOBTN_EN1_WPORT' was not declared in this scope
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
ultralcd.cpp:1143:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN1,HIGH);
^
fastio.h:30:127: error: 'DIOBTN_EN1_PIN' was not declared in this scope
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
ultralcd.cpp:1143:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN1,HIGH);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:45:36: error: 'DIOBTN_EN2_RPORT' was not declared in this scope
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
ultralcd.cpp:1144:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN2,HIGH);
^
fastio.h:34:43: error: 'DIOBTN_EN2_WPORT' was not declared in this scope
{DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); }\
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
ultralcd.cpp:1144:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN2,HIGH);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:34:72: error: 'DIOBTN_EN2_PIN' was not declared in this scope
{DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); }\
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
ultralcd.cpp:1144:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN2,HIGH);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:39:43: error: 'DIOBTN_EN2_WPORT' was not declared in this scope
{DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }\
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
ultralcd.cpp:1144:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN2,HIGH);
^
In file included from Marlin.h:21:0,
from temperature.h:24,
from ultralcd.cpp:1:
fastio.h:39:73: error: 'DIOBTN_EN2_PIN' was not declared in this scope
{DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }\
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:80: note: in expansion of macro '_WRITE_C'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
ultralcd.cpp:1144:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN2,HIGH);
^
fastio.h:30:40: error: 'DIOBTN_EN2_WPORT' was not declared in this scope
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
ultralcd.cpp:1144:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN2,HIGH);
^
fastio.h:30:69: error: 'DIOBTN_EN2_PIN' was not declared in this scope
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
ultralcd.cpp:1144:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN2,HIGH);
^
fastio.h:30:97: error: 'DIOBTN_EN2_WPORT' was not declared in this scope
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
ultralcd.cpp:1144:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN2,HIGH);
^
fastio.h:30:127: error: 'DIOBTN_EN2_PIN' was not declared in this scope
#define _WRITE_NC(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:45:105: note: in expansion of macro '_WRITE_NC'
#define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)
^
fastio.h:68:23: note: in expansion of macro '_WRITE'
#define WRITE(IO, v) _WRITE(IO, v)
^
ultralcd.cpp:1144:5: note: in expansion of macro 'WRITE'
WRITE(BTN_EN2,HIGH);
^
ultralcd.cpp: In function 'void lcd_buttons_update()':
fastio.h:26:27: error: 'DIOBTN_EN1_RPORT' was not declared in this scope
#define _READ(IO) ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
^
fastio.h:66:19: note: in expansion of macro '_READ'
#define READ(IO) _READ(IO)
^
ultralcd.cpp:1333:8: note: in expansion of macro 'READ'
if(READ(BTN_EN1)==0) newbutton|=EN_A;
^
fastio.h:26:54: error: 'DIOBTN_EN1_PIN' was not declared in this scope
#define _READ(IO) ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:66:19: note: in expansion of macro '_READ'
#define READ(IO) _READ(IO)
^
ultralcd.cpp:1333:8: note: in expansion of macro 'READ'
if(READ(BTN_EN1)==0) newbutton|=EN_A;
^
fastio.h:26:27: error: 'DIOBTN_EN2_RPORT' was not declared in this scope
#define _READ(IO) ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
^
fastio.h:66:19: note: in expansion of macro '_READ'
#define READ(IO) _READ(IO)
^
ultralcd.cpp:1334:8: note: in expansion of macro 'READ'
if(READ(BTN_EN2)==0) newbutton|=EN_B;
^
fastio.h:26:54: error: 'DIOBTN_EN2_PIN' was not declared in this scope
#define _READ(IO) ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
^
fastio.h:17:26: note: in definition of macro 'MASK'
#define MASK(PIN) (1 << PIN)
^
fastio.h:66:19: note: in expansion of macro '_READ'
#define READ(IO) _READ(IO)
^
ultralcd.cpp:1334:8: note: in expansion of macro 'READ'
if(READ(BTN_EN2)==0) newbutton|=EN_B;
^
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.