Quote:
|
Originally Posted by Dave Flowerday
You might want to try
And make sure you include stdlib.h in your user_routines.c file.
|
Ok, I tried that. Get this: ...\user_routines.c:267:Warning [2058] call of function without prototype:
Code:
unsigned char Random(void)
{
unsigned int rnd;
// Right Here! ************************
rnd = Rand();
rnd = rnd / RAND_MAX;
return (unsigned char) (rnd & 0xFF);
}
And I included Std.lib.: #include <stdlib.h>
Other Half: ...\user_routines.c:289:Error [1131] type mismatch in assignment:
Code:
void Default_Routine(void)
{
//...
//Between Here...
pwm01=pwm03=Random;
pwm02=pwm04=Random;
//... And Here.
//...
}
P.S.- Tell me if it's some simple Syntax stuff. I'm still trying to get the hang of it.
