Hello, I tried to build this project and got the following messages:
Build started 29.7.2010 at 22:07:08
ned-bitfields -fpack-struct -fshort-enums -MD -MP -MT Servo_Controller.o -MF dep/Servo_Controller.o.d -c ../Servo_Controller.c
In file included from ../SoR_Utils.h:26,
from ../Servo_Controller.c:15:
../global.h:37:1: warning: "F_CPU" redefined
<command-line>: warning: this is the location of the previous definition
../Servo_Controller.c:88: error: 'L' undeclared here (not in a function)
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c:88: warning: initialization from incompatible pointer type
../Servo_Controller.c: In function 'main':
../Servo_Controller.c:240: warning: assignment makes integer from pointer without a cast
../Servo_Controller.c:242: warning: assignment makes pointer from integer without a cast
make: *** [Servo_Controller.o] Error 1
Build failed with 1 errors and 31 warnings...
The line that the error corresponds to was:
int *init_servo_port[28]={&L,&PORTL,&PORTL,&PORTL,&PORTL,&PORTL,&PORTL,&PORTL,&PORTG,&PORTG,&PORTH, &PORTB,&PORTB,&PORTB,&PORTB,&PORTH,&PORTH,&PORTH,&PORTH,&PORTE,&PORTE,&PORTE,&PORTE,&PORTE,&PORTG, &PORTA,&PORTA,&PORTA};
I attempted to fix this error but was not successful. Could you please tell me what I could be doing wrong.
Thank you.