smart-green-house/rtt-uart-nb/rt-thread/components/dfs/filesystems/jffs2/kernel/asm/atomic.h

11 lines
208 B
C
Raw Permalink Normal View History

2023-10-28 18:00:47 +08:00
#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__ */