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