ATM_incu
2-10
C Interface
Syntax
uval = ATM_incu(udst);
Parameters
volatile Uns
*udst;
/* pointer to unsigned */
Return Value
Uns
uval;
/* new value after increment */
Description
ATM_incu atomically increments an Uns memory location and returns its
new value as follows:
`interrupt disable`
uval = *udst + 1;
*udst = uval;
`interrupt enable`
return (uval);
ATM_incu is written in assembly language, efficiently disabling interrupts
on the target processor during the call.
Incrementing a value equal to the maximum unsigned integer results in a
value equal to the minimum unsigned integer.
See Also
ATM_incu
Atomically increment Uns memory and return new value