I'm using this function:
__delay_cycles(var);
and I get the following error:
Argument to
_delay_cycles
must be a constant expression
Fair enough! But how can I bypass this? I have to delay my program with a different value every time. I receive my data from RS232 and I sore it in an int
variable. I have to use this function and I can't modify its structure. I'm using AtMega16.