21#ifndef ATOMIC_UTILS_ARCH_H
22#define ATOMIC_UTILS_ARCH_H
25#include "periph_cpu.h"
34#define HAS_ATOMIC_LOAD_U8
37 return __atomic_load_1(var, __ATOMIC_SEQ_CST);
40#define HAS_ATOMIC_STORE_U8
43 __atomic_store_1(dest, val, __ATOMIC_SEQ_CST);
static void atomic_store_u8(volatile uint8_t *dest, uint8_t val)
Store an uint8_t atomically.
static uint8_t atomic_load_u8(const volatile uint8_t *var)
Load an uint8_t atomically.