• problem with function pointers
    Hi, I'm trying to succeed in a function pointer. what is wrong with the compiler says: syntax error: token -> 'code' ; column 18 #include <string.h> char str1[10]; xdata unsigned int i; xdata...
  • problem with function pointers
    Hi, I'm trying to succeed in a function pointer. what is wrong with the compiler says: syntax error: token -> 'code' ; column 18 #include <string.h> char str1[10]; xdata unsigned int i; xdata...
  • 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 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...
  • SPI init problem
    Hi, I have a LPC2294 board. When I try to init SPI program crashes. OS is RL-ARM and spi_init function executes "SSPCR0 = 0x00C7;" instruction in simulator then it gives the folloving error: "Data...