Thanks, scincerely.
According to my understanding, ISRs always run in the processor's
interrupt mode with interrupts off. So you need take no explicit action to
block interrupts. (Unless your system supports nested interrupts, but even
then you would only need to explicitly call intLock() and intUnlock() if
you wanted to block anything with a higher priority.)
For reference: intLock() and intUnlock() block and unblock global
interrupts. All systems have these.
intDisable() and intEnable() block and unblock specific interrupt sources
in a platform-dependent manner. Not all systems have these. They allow you
to block, say, all interrupts with a priority less than 5 while allowing
others to be executed.
Which you use depends on the system you are running on and how portable
you want your code to be.
--
David Given
Tao Group Ltd.