ATM_cleari
Application Program Interface
2-5
C Interface
Syntax
ival = ATM_cleari(idst);
Parameters
volatile Int
*idst;
/* pointer to integer */
Return Value
Int
ival;
/* previous value of *idst */
Description
ATM_cleari atomically clears an Int memory location and returns its
previous value as follows:
`interrupt disable`
ival = *idst;
*dst = 0;
`interrupt enable`
return (ival);
ATM_cleari is written in assembly language, efficiently disabling
interrupts on the target processor during the call.
See Also
ATM_cleari
Atomically clear Int memory location and return previous value