In the "Interrupt Labels (Event Handlers)" section I'd suggest to add the following note.
NOTE: Interrupt routines are always executed in the global variable scope. If a variable name used in an interrupt routine is not defined in the global scope, then, considering the current function invocation stack, such variable refers to the variable instance of the function scope closest to the global scope (i.e. deepest in the invocation stack) where the variable is first defined. It is recommended not to invoke user-defined functions inside interrupt routines to avoid variable namespace clashes. In case a user-defined function must absolutely be invoked, it is recommended to create a special version of such function which uses original variable names, i.e. names which are not and shall never be used either in the global namespace or in the namespace of any other user-defined function.
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum