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