AnsweredAssumed Answered

function pointer does not call a function in CW 5.0

Question asked by Faruk Chaudhry on Jun 12, 2006
Latest reply on Jun 13, 2006 by Faruk Chaudhry
Hi,
 
Under CW 5.0, I have declared a simple function pointer:
 
void (*fp) ();
 
the call:
 
fp = &MCU_init;  // just an example
 
In simulation,  fp = the address of MCU_init, but does not execute the function.
I am using the small memory model.  I also used a typedef, but still no luck. 
 
Is it a compiler setting?

Outcomes