In MPLAB, how do I call functions from other files in a project?
Here is my code:
Code:
static int counter;
counter = Get_Encoder_3_Count();
And the Get_Encoder_3_Count() function is located in the file encoder.c
Here is the function code:
Code:
long Get_Encoder_3_Count(void)
{
long count;
INTCONbits.RBIE = 0;
count = Encoder_3_Count;
INTCONbits.RBIE = 1;
return(count);
}
The error that I get is:
Error - could not find definition of symbol 'Get_Encoder_3_Count' in file 'V:\frc-code-2007-8722\FrcCode_2007_8722\user_routines.o'.