• Function pointer to printf() problem
    My chip has internal ROM and also external ROM. What I want to do is let my customers write their own external program and the internal functions could be called and executed. I did experiment with printf...
  • Function Pointers problems...
    Hi, everybody my memory model is large, and I have 2 banks (bank0 and bank1). In one module of a bank0 I define: void (code *fp_tab[]) ( void ) = { MyFunct }; In Common Bank I define: void MyFunct...
  • Pointer to function problems
    Hi, This post is about the classic problem creating pointers to function using the overlay procedure. The reference in the manual suggest the OVERLAY directive to modify the call tree that is...
  • Problem with pointer to function
    Hello, data char var; void (code * data fptr)(void); void fun(void) { var = 10; } void main(void) { fptr = fun; (*fptr)(); // OK! (*(fptr = fun))(); // This line generates bad code! (*(fptr...
  • Problem in function pointer variable
    Hello, I have faced a problem with a function pointer variable. I have separated the uart module in two parts: HAL, which abstracts the hardware, and Service, which provides the uart service to the...