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

Declaring a Class member function as an interrupt handler

Hi.

I'm trying to use a member function of a static class as an interupt handler. I can handle interrupts in C++ file by creating a function with the same name as in startupxx.s file and declare it with extern"C" but i'm unable to do the same in class member function. Does anyone knows a solution for this problem.

Parents
  • Thanks alot. I hope to access private member variables and call private functions of the class inside an interrupt hadler function. Thats why i tried to declare the member function as an interrupt handler. I see that it is impossible to pass hiden "this" parameter to interrupt handler. I had missed this issue. Thanks for help.

Reply
  • Thanks alot. I hope to access private member variables and call private functions of the class inside an interrupt hadler function. Thats why i tried to declare the member function as an interrupt handler. I see that it is impossible to pass hiden "this" parameter to interrupt handler. I had missed this issue. Thanks for help.

Children
No data