interrupt

when i use the following syntax in my code it says interrupt declared void but as far as i know this is the correct syntax of interrupt

1
2
 void interrupt(*old1b)();
void interrupt(*old23)() ;
What is the type of old1b ? ... and the type of old23 is?
far pointers
ok, now specify that in the code.
Also you still did not say what type it is pointing to.
Last edited on
c++ knows nothing of interrupts. handlers are static void functions with no parameters, the address of which goes into the interrupt vector.

1
2
3
static void my_handler();

isr_vec[4] = my_handler;


where did you find that declaration of an interrupt?

I notice that you have asked a few questions about legacy issues like far pointers. Tell us which compiler/version you are using because all of the default advice on these boards will be for modern c++.

Topic archived. No new replies allowed.