Mail Archives: djgpp/2000/09/28/02:05:21
On Wed, 27 Sep 2000, Martin Czamai wrote:
> The static keyword is necessary to make it possible to lock my_ISR in
> memory, which is required since my_ISR is a interrupt service routine that
> must NOT be swapped out to disk. Currently I receive from the compiler the
> message, that it cannot call a member-function without an object. But I need
> member variables and methods of this class. :-((
Try to split the ISR-related code into two functions: one written in
C, which doesn't access any class members, the other in C++ which does
the rest. Then you could install only the C function as the interrupt
handler and avoid the complications with C++ restrictions.
- Raw text -