Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

Interrupt Routines can be member functions??

Interrupt Routines can be member functions??

2004-09-20 by Rodrigo Cesar da Silva Martins

Can I declare an ISR as a function member?
I'm getting an error in the VICVectAddr definition. 
 
 
Rodrigo Martins
Intermetric Instrumentos Ltda
(11) 4761-8009
rodrigo@...
 


[Non-text portions of this message have been removed]

Re: [lpc2000] Interrupt Routines can be member functions??

2004-09-20 by Robert Adsett

At 04:34 PM 9/20/04 -0300, you wrote:
>Can I declare an ISR as a function member?
>I'm getting an error in the VICVectAddr definition.

Not as a general rule.  An interrupt would have no way of knowing which 
object it was associated with and therefor what to use for the *this 
parameter.  static member functions could conceivably be used but that 
seems ugly to me compared to a straightforward function.

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.