edward0429 / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

"PE" Redifined error with ATmega8 and gcc 4.5.3 #618

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Building with gcc 4.5.3 for ATmega8 the "PE" is redefined in pins_arduino.c 
line 72. The previous declaration is in file iom8.h in line 516, is the PE bit 
of UCSRA. With ATmega328 where is no problem as the PE bit is renamed.
An easy solution is to move PE, PF, PG, PH, PJ, PK, and PL definitions from 
lines 72-78 in pins_arduino.c to line 82, inside the ATmega1280 block, as these 
ports exist only in arduino mega boads.

What version of the Arduino software are you using? On what operating
system?  Which Arduino board are you using?

I am using 1.0beta2 with arduino-uno under debian-linux.

Please provide any additional information below.

Original issue reported on code.google.com by arkali...@gmail.com on 1 Sep 2011 at 1:50