uint32_t disableInterrupts(void)
'disableInterrupts() completely turns off the interrupt system preventing any interrupts from being serviced. Interrupt flags will still be set and interrupts may still be serviced once interrupts have been re-enabled with either enableInterrupts() or restoreInterrupts().
The previous state of the interrupt system which may be used with restoreInterrupts() to return the interrupt system to the previous settings.
disableInterrupts() does not conform to any external API, it is unique to the chipKIT system.
Disable and restore interrupts:
uint32_t s = disableInterrupts();
// Perform sensitive operations
restoreInterrupts(s);
attachInterrupt(), detachInterrupt(), clearIntEnable(), clearIntFlag(), clearIntVector(), enableInterrupts(), getIntFlag(), getIntPriority(), getIntVector(), restoreIntEnable(), restoreInterrupts(), setIntEnable(), setIntPriority(), setIntVector()