include/atomic.h File Reference
Implementation of atomic operations.
More...
#include <compiler.h>
#include <stdint.h>
Go to the source code of this file.
|
Functions |
| static atomic_t | atomic_add (atomic_t *ptr, uint32_t value) |
| | Atomically add value to the value stored at ptr.
|
| static atomic_t | atomic_sub (atomic_t *ptr, uint32_t value) |
| | Atomically subtract value from the value stored at ptr.
|
Detailed Description
Implementation of atomic operations.
- Compiler: IAR EWAVR32 and GNU GCC v4.2+ for AVR32
- Supported devices: All AVR32 devices
- AppNote:
- Author:
- Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/
Definition in file atomic.h.
Function Documentation
| static atomic_t atomic_add |
( |
atomic_t * |
ptr, |
|
|
uint32_t |
value | |
|
) |
| | [inline, static] |
Atomically add value to the value stored at ptr.
- Returns:
- The result of the addition
Definition at line 67 of file atomic.h.
| static atomic_t atomic_sub |
( |
atomic_t * |
ptr, |
|
|
uint32_t |
value | |
|
) |
| | [inline, static] |
Atomically subtract value from the value stored at ptr.
- Returns:
- The result of the subtraction
Definition at line 79 of file atomic.h.