19 #ifndef ATOMIC_UTILS_ARCH_H
20 #define ATOMIC_UTILS_ARCH_H
23 #include "periph_cpu.h"
32 #define HAS_ATOMIC_LOAD_U8
35 return __atomic_load_1(var, __ATOMIC_SEQ_CST);
38 #define HAS_ATOMIC_LOAD_U16
41 return __atomic_load_2(var, __ATOMIC_SEQ_CST);
44 #define HAS_ATOMIC_LOAD_U32
47 return __atomic_load_4(var, __ATOMIC_SEQ_CST);
50 #define HAS_ATOMIC_STORE_U8
53 __atomic_store_1(dest, val, __ATOMIC_SEQ_CST);
56 #define HAS_ATOMIC_STORE_U16
59 __atomic_store_2(dest, val, __ATOMIC_SEQ_CST);
62 #define HAS_ATOMIC_STORE_U32
65 __atomic_store_4(dest, val, __ATOMIC_SEQ_CST);