Mike
14-01-2006, 16:16
So today I tried opening up the '06 code on my MPLAB 6.3. It wouldn't open, so I figured "OK, I can just make a new project." I did that, got the correct chip to program for, etc. Now it gave me an error on
Generate_Pwms(pwm13,pwm14,pwm15,pwm16);
The error was
C:\FIRST\code\user_routines_fast.c:143:Error [1203] too few arguments in function call
So, I did a search for Generate_Pwms. It returned
#ifdef _FRC_BOARD
/* located in ifi_library.lib */
void Generate_Pwms(unsigned char pwm_13,unsigned char pwm_14,
unsigned char pwm_15,unsigned char pwm_16);
#else
/* located in ifi_library.lib */
void Generate_Pwms(unsigned char pwm_1,unsigned char pwm_2,
unsigned char pwm_3,unsigned char pwm_4,
unsigned char pwm_5,unsigned char pwm_6,
unsigned char pwm_7,unsigned char pwm_8);
#endif
So I assume it is using the second function prototype. This is probably because I neglected to set the pre-processor _FRC_BOARD. I looked in all the menus and such, but couldn't find a listing of pre-processor directives and their values. How do I change that value?
Thanks
Generate_Pwms(pwm13,pwm14,pwm15,pwm16);
The error was
C:\FIRST\code\user_routines_fast.c:143:Error [1203] too few arguments in function call
So, I did a search for Generate_Pwms. It returned
#ifdef _FRC_BOARD
/* located in ifi_library.lib */
void Generate_Pwms(unsigned char pwm_13,unsigned char pwm_14,
unsigned char pwm_15,unsigned char pwm_16);
#else
/* located in ifi_library.lib */
void Generate_Pwms(unsigned char pwm_1,unsigned char pwm_2,
unsigned char pwm_3,unsigned char pwm_4,
unsigned char pwm_5,unsigned char pwm_6,
unsigned char pwm_7,unsigned char pwm_8);
#endif
So I assume it is using the second function prototype. This is probably because I neglected to set the pre-processor _FRC_BOARD. I looked in all the menus and such, but couldn't find a listing of pre-processor directives and their values. How do I change that value?
Thanks