Quote:
|
Originally Posted by doy
i just tested it with
Code:
#define _FRC_BOARD
Generate_Pwms(pwm13,pwm14,pwm15,pwm16);
in Process_Data_From_Master_uP() and it gives the same error... should i have to #define that? if i dont, Generate_Pwms() requires 8 argument, and i dont know what the difference is.
|
I don't think that's right. Ex:
Code:
const int SomeVal = 321;
#define SomeAlias SomeVal
void SomeSub(void)
{
if (SomeVal == SomeAlias)
Code_Allways_Executes();
if (SomeVal <> SomeAlias)
Code_Never_Executes;
}
Which is compiled as:
Code:
const int SomeVal = 321;
void SomeSub(void)
{
if (SomeVal == SomeVal)
Code_Allways_Executes();
if (SomeVal <> SomeVal)
Code_Never_Executes;
}
Get it?
Of course, I don't know all the ins and outs of C, so check the FRC default code.