ATM_setu
2-14
C Interface
Syntax
uold = ATM_setu(udst, unew);
Parameters
volatile Uns *udst; /* pointer to unsigned */
Uns unew; /* new unsigned value */
Return Value
Uns uold; /* previous value of *udst */
Description
ATM_setu atomically sets an Uns memory location to a new value and
returns its previous value as follows:
`interrupt disable`
uval = *udst;
*udst = unew;
`interrupt enable`
return (uval);
ATM_setu is written in assembly language, efficiently disabling interrupts
on the target processor during the call.
See Also
ATM_setu
Atomically set Uns memory and return previous value