Quote:
|
Originally Posted by AIBob
no you do not need to use a define....
you should just call it as a function like so:
Code:
pwm01 = deadlimit(pwm01);
or something like that...
The pwmin is defined by the function...
be sure that you define:
"unsigned int DeadLimit(unsigned int pwmin);"
inside of an h file that you have included in it.
|
so i should add unsigned int deadlimit ..... into and h file and then the
"{
if (((pwm-127) && 0x7f >15) return pwmin
else return 127;
}"
into user_routines.c. where do i put the pwm01 = deadlimit(pwm01)?