mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-04 16:44:34 +08:00
11 lines
208 B
C
11 lines
208 B
C
|
#ifndef __ASM_ATOMIC_H__
|
||
|
#define __ASM_ATOMIC_H__
|
||
|
|
||
|
#define atomic_t int
|
||
|
#define atomic_inc(atom) (*atom)++
|
||
|
#define atomic_dec(atom) (*atom)--
|
||
|
#define atomic_read(atom) (*atom)
|
||
|
|
||
|
|
||
|
#endif /* __ASM_ATOMIC_H__ */
|