This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
Hello
I am able to get a simple GEL function like square working in the expressions window, i.e.
square(a) { return a*a; }
However, the expressions window is returning an error with a more complicated function like Limit(value,lower,upper), i.e.
Limit(value,lower,upper) { if (value >= upper) { return upper } else if (value <= lower) { return lower } else { return value; } }
The error is
Limit(u32VoltageError,0,16777216) unknown 'Limit()' not found
at Limit(u32VoltageError, 0, 16777216)
What am I doing wrong.
Stephen