I thought of using a function pointer. But it doesn't seem to work.
Something like this:
Code: Select all
void my_method() {
uint8_t option;
option= 1;
}
void main() {
void (*methodAdr);
methodAdr= &my_method();
PRINT("methodAdr:", (uint16_t)methodAdr);
}