Not new to embedded systems, not new to C++.
New to embedded C++ however.
I have interrupts 'working' by putting them in a C file and accessing global variables.
Is there a more C++ way of doing this?
Using CW 5.9 and MC9s12
Thanks
Keith
解決済! 解決策の投稿を見る。
Thanks, thats what I was suspecting and pretty much how I'm implementing it.
I'm following your intterupt example in another thread as a guide.
Oh I am MUCH more interested in the cynical experienced engineers choice!
And that was really the reason for this thread. I had 1 way to do it, but I wanted at least an opinion on the subject.
I did find an article about doing interrupts in C++ using aggreation and virtual base classes, but for my little processor it seemed way overkill.
I mean C++ my prove to be too much. But a guy has to try right?