IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page

static void MaskInterrupts ( void   )  [inline, static]

This inline function performs a system call which will masks the hardware interrupts. 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 EnableInterrupts() very soon afterwards.

When application code is operated in privileged Supervisor mode, it is important that this method be used for masking hardware interrupts instead of directly manipulating the CPU's Machine Status Register. The system's floating-point context tracking can be corrupted if this is attempted.

See also:
MaskIntPrev()     EnableInterrupts() atomicModify()
This function is not available in the SC1x, SC2x and SC1x3 C-Library.
SC2x3 V1.00 - CLIB V1.00

Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Thu Nov 1 13:20:15 2018 by Doxygen 1.6.1