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