local variable inside ISR

Beta Testing discussion on mikroPascal PRO for PIC32.
Post Reply
Author
Message
jpc
Posts: 1986
Joined: 22 Apr 2005 17:40
Location: France 87

local variable inside ISR

#1 Post by jpc » 08 Feb 2011 08:46

this is just a question : can i use local variable's inside an ISR or is there a risk these will be mapped on some other local var ? This also would affect local vars used inside functions called from withing the ISR i presume. If possible have this explained well and integrated in the help on interrupts.
Au royaume des aveugles, les borgnes sont rois.

User avatar
rajkovic
mikroElektronika team
Posts: 694
Joined: 16 Aug 2004 12:40

Re: local variable inside ISR

#2 Post by rajkovic » 08 Feb 2011 14:10

jpc wrote:this is just a question : can i use local variable's inside an ISR or is there a risk these will be mapped on some other local var ? This also would affect local vars used inside functions called from withing the ISR i presume. If possible have this explained well and integrated in the help on interrupts.
there is no risk for local variables and parameters, each function call has its own frame and its own instances.

Post Reply

Return to “mikroPascal PRO for PIC32 Beta Testing”