Hi All, Could anybody help me out with the following problem? I have a module with the following declarations.
int (*on_CAN_msg)(void); ... void CAN_int_handler(void) interrupt 7 using 1 { ... if (on_CAN_msg) on_CAN_msg(); ... }
int CAN_msg_handler(void){ ... } extern int (*on_CAN_msg)(void) = CAN_msg_handler;
CAN_int_handler ! (CAN_msg_handler), main ! (on_CAN_msg)
int main(){ ... on_CAN_msg = CAN_msg_handler; ... }