View Single Post
  #9   Spotlight this post!  
Unread 23-01-2004, 23:04
doy's Avatar
doy doy is offline
#1208 Ex-Lead Programmer
AKA: Jesse Luehrs
#1208 (The Super Critical Axe Men)
Team Role: Alumni
 
Join Date: Jan 2004
Location: O'Fallon, IL
Posts: 27
doy is on a distinguished road
Send a message via AIM to doy
Re: Beacon Code on Full Size RC?

no... this is in ifi_utilities.h:
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 if _FRC_BOARD is defined, Generate_Pwms() takes 4 arguments, otherwise it takes 8. since the code initially had 4 arguments named pwm13, pwm14, pwm15, and pwm16, i assumed that the 4 argument call was the one that should be called, so i #defined _FRC_BOARD.