Everything was going so well... January 14, 2014 09:37PM |
Registered: 10 years ago Posts: 32 |
fastio.h:29:126: error: pasting "DIO" and "-" does not give a valid preprocessing token #define _WRITE(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0) ^ fastio.h:48:25: note: in expansion of macro '_WRITE' #define WRITE(IO, v) _WRITE(IO, v) ^ heater.cpp:345:4: note: in expansion of macro 'WRITE' WRITE(HEATER_1_PIN,LOW); ^ pins.h:346:23: error: invalid suffix "_PIN" on integer constant #define HEATER_1_PIN -1 ^ fastio.h:17:30: note: in definition of macro 'MASK' #define MASK(PIN) (1 << PIN) ^ fastio.h:48:25: note: in expansion of macro '_WRITE' #define WRITE(IO, v) _WRITE(IO, v) ^ heater.cpp:345:4: note: in expansion of macro 'WRITE' WRITE(HEATER_1_PIN,LOW); ^ heater.cpp:345:10: note: in expansion of macro 'HEATER_1_PIN' WRITE(HEATER_1_PIN,LOW); ^ heater.cpp: In function 'void PID_autotune(int)': fastio.h:29:39: error: 'DIO' was not declared in this scope #define _WRITE(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0) ^ fastio.h:48:25: note: in expansion of macro '_WRITE' #define WRITE(IO, v) _WRITE(IO, v) ^ heater.cpp:345:4: note: in expansion of macro 'WRITE' WRITE(HEATER_1_PIN,LOW); ^ fastio.h:29:96: error: 'DIO' was not declared in this scope #define _WRITE(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0) ^ fastio.h:48:25: note: in expansion of macro '_WRITE' #define WRITE(IO, v) _WRITE(IO, v) ^ heater.cpp:345:4: note: in expansion of macro 'WRITE' WRITE(HEATER_1_PIN,LOW); ^
Re: Everything was going so well... January 14, 2014 10:41PM |
Registered: 13 years ago Posts: 1,797 |
Re: Everything was going so well... January 14, 2014 11:00PM |
Registered: 10 years ago Posts: 32 |
Re: Everything was going so well... January 15, 2014 12:30AM |
Registered: 11 years ago Posts: 5 |
Re: Everything was going so well... January 15, 2014 01:21AM |
Registered: 13 years ago Posts: 1,797 |
Re: Everything was going so well... January 15, 2014 07:40PM |
Registered: 10 years ago Posts: 32 |
Re: Everything was going so well... January 16, 2014 01:16AM |
Registered: 10 years ago Posts: 32 |