Interrupt Manager API Reference
adi_int_EnterCriticalRegion
Description
This function creates a condition that protects a critical region of code.
The companion function,
condition. These functions are used to bracket a section of code that
requires protection from other processing. These functions are used in
pairs sparingly and only when critical regions of code needs to be
protected.
The return value from this function should be passed to the corresponding
adi_int_ExitCriticalRegion
The actual condition that is created depends upon the operating environ-
ment. In the standalone version of the service, this function effectively
disables interrupts, saving the current value of
tion. The
adi_int_ExitCriticalRegion
value. These functions employ a usage counter so that they can be
IMASK
nested. When nested, the
els. In the standalone version, the
adi_int_EnterCriticalRegion
Information on the implementation details for this function in other oper-
ating environments can be found in the file
Blackfin/include/services/
environment.
Regardless of the implementation details, the API is consistent from envi-
ronment to operating environment and from processor to processor.
Application software does not need to change when moving to a different
operating environment or moving from one Blackfin derivative to
another.
2-26
adi_int_ExitCriticalRegion
function.
function restores the original
value is altered only at the outermost lev-
IMASK
parameter to the
pArg
is meaningless.
adi_int_xxx.h
directory, where
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors
, removes the
to a temporary loca-
IMASK
, located in the
is the operating
xxx
Need help?
Do you have a question about the VisualDSP++ 5.0 and is the answer not in the manual?