Go Down

Topic: attach interrupt handler & c++ (Read 1 time) previous topic - next topic

jimLee

Can I attach an interrupt handler to a object's method? Or must it be just a global c function?

I'd like to have 2 identical objects one handling int0 and one handling int1.

thanks!

-jim lee
PNW Ardiuno & Maker club
1012 9Th Street, Anacortes, WA 98221 (Around the back of building)

nickgammon

Better have a glue routine. Interrupt handlers have to be static.
Please post technical questions on the forum, not by personal message. Thanks!

More info: http://www.gammon.com.au/electronics

jimLee

Ok thanks, I was wondering. Glue it is..

-jim lee
PNW Ardiuno & Maker club
1012 9Th Street, Anacortes, WA 98221 (Around the back of building)

Go Up