Hi,
i deal with a atmega32 and I write the program in C.
I want to make a function which has multiple returns. I solve the problem like this:
void foo(int16_t &a, int16_t &b) {
a+=0x3211;
b+=a;
return;
}
Using other C compilers (like Dev-C++) this kind of solution works, but the AVR studio has an error, it expects a ';' or ',' or ')' before the '&'. Has anybody any idea how to solve this problem, or any advive how to deal with multiple returns?
thanks