Hi,
I have some dual core IRQ code which was working but I wanted to wrap it in a C++ class . Now I'm having trouble assigning what is now a class method as an IRQ handler.
I've tried prefixing the method name with the class name but that gets rejected also.
Can someone explain the correct way to do this?
TIA.
I have some dual core IRQ code which was working but I wanted to wrap it in a C++ class . Now I'm having trouble assigning what is now a class method as an IRQ handler.
Code:
rComm.cpp:111:51: error: cannot convert 'void (RCOMM::*)()' to 'irq_handler_t' {aka 'void (*)()'} 111 | gpio_add_raw_irq_handler_masked(all_RC_gpios, &ISR_all);
Can someone explain the correct way to do this?
TIA.
Statistics: Posted by pie_face — Fri Nov 22, 2024 6:38 am — Replies 2 — Views 40