This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Arrays of Function Pointers

Dear All,

When I am compling the c program below i am getting the error

"""error C211: call not to a function"""

Can anyone help me out with this error ?

/**************C FIle*************/
#include "abc.h"

extern unsigned char func_arry_pntr;
extern unsigned int xdata *funcArr[32];

void timer1_routine(void) interrupt T1_INT using 3
{ static unsigned char intr_counter;

++intr_counter; if(intr_counter == 0x0A) { intr_counter = 0x00; (*funcArr[func_arry)pntr])();

if(func_arry_pntr < MAX_ARRAY_SIZE) { ++func_arry_pntr; } else { func_arry_pntr = 0x00; }

}

/*********** array define *******/

xdata unsigned int (*funcArr[32])
= {&func1, &func2, &func3, &func4, NULL, NULL, NULL, NULL};

0