zapta / linbus

An Arduino based LINBUS stack and signal interceptor/injector.
184 stars 70 forks source link

injector sources fail to compile with latest arduino software #29

Closed Yannik closed 5 years ago

Yannik commented 5 years ago

Hi,

at first I was getting many "arduino.h: No such file or directory" errors, which I was able to fix by changing each occurence of arduino.h to Arduino.h.

However, now I'm getting the following errors:

In file included from sketch/sio.h:17:0,
                 from sketch/sio.cpp:13:
sketch/sio.cpp: In function 'void sio::setup()':
sio.cpp:67:16: error: 'UDORD0' was not declared in this scope
     UCSR0C = H(UDORD0) | H(UCPHA0);  //(3 << UCSZ00);  
                ^
sketch/avr_util.h:29:21: note: in definition of macro 'H'
 #define H(x) (1 << (x))
                     ^
sio.cpp:67:28: error: 'UCPHA0' was not declared in this scope
     UCSR0C = H(UDORD0) | H(UCPHA0);  //(3 << UCSZ00);  
                            ^
sketch/avr_util.h:29:21: note: in definition of macro 'H'
 #define H(x) (1 << (x))
                     ^
exit status 1

I'd very much appreciate some help.

Yannik commented 5 years ago

I did not specify the correct board as stated in the main README, my fault.