This inline function is intended for masking interrupts when the current state of the hardware interrupt mask is not known. A system call is made to perform the interrupt masking. The previous interrupt mask state is returned. This return value can be used as the input parameter to RestoreInterrupts().
It is essential for proper system operation that the interrupt mask periods be kept very short. How short depends on the system's application, but interrupt masking for over 10 microseconds gets into an area which raises concern.
The application program using this API is responsible for calling either EnableInterrupts() or RestoreInterrupts() very soon afterwards.
- The current interrupt mask state bits for later use by RestoreInterrupts().
- See also:
- MaskInterrupts() RestoreInterrupts() EnableInterrupts()
- This function is not available in the SC1x, SC2x and SC1x3 C-Library.
- SC2x3 V1.00 - CLIB V1.00