Quantcast
Viewing all articles
Browse latest Browse all 4710

SDK • error: cannot convert 'void (RCOMM::*)()' to 'irq_handler_t'

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.

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);
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.

Statistics: Posted by pie_face — Fri Nov 22, 2024 6:38 am — Replies 2 — Views 40



Viewing all articles
Browse latest Browse all 4710

Trending Articles