Dear all,
I have the need to define some functions as "non-interruptible" and I remember some #pragma at least for C51 which would do this. I looked for similar #pragmas for the g21k but apparently I haven't found any hint.
Does anyone out there know how to reliably define a function as non-interruptible? I understand that I could disable all interrupts and enable them once the function has completed - which will potentially cause to loose an interrupt, unless level-sensitive - but I believed there are some "utilities" to do that at compilation level.
Some additional info: the non-interruptable function is a function which returns system time, therefore if interrupted while the value is being read it may return a wrong value.
Al