View Single Post
  #1   Spotlight this post!  
Unread 14-01-2006, 16:16
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Creating new MPLab Project

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
Code:
Generate_Pwms(pwm13,pwm14,pwm15,pwm16);
The error was
Quote:
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
Code:
#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
__________________
http://www.mikesorrenti.com/