@Athiest

Originally Posted by
wolf99
Code:
// ISR name= interrupt void ext1isr (void)
ext1isr is the function. Im trying to make a pointer to a function.
So I have the rest of the pointer manipulation working bar trying to assign the functions address to the pointer.
In Keil C (and ANSI C AFAIK) the code would be this:
Code:
pIsr = &functionName;
Which is what seems to be throwing the only error that functionName is an undefined identifier....
I placed the ISR function above the main() in the file and the error leaves but is replaced by a warning: "redundant "&" applied to function" which makes me think that what is happening here is that the program is actually calling the function and expecting a variable to be returned that will then be placed in the variable pISR, some thing like if I had written:
Code:
int x = add(5,5) // expect x = 10
*sigh*