diff options
Diffstat (limited to 'core/cortex-m/atomic.h')
-rw-r--r-- | core/cortex-m/atomic.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/cortex-m/atomic.h b/core/cortex-m/atomic.h index e9b96f6fd5..ce183465e8 100644 --- a/core/cortex-m/atomic.h +++ b/core/cortex-m/atomic.h @@ -8,11 +8,9 @@ #ifndef __CROS_EC_ATOMIC_H #define __CROS_EC_ATOMIC_H +#include "atomic_t.h" #include "common.h" -typedef int atomic_t; -typedef atomic_t atomic_val_t; - static inline atomic_val_t atomic_clear_bits(atomic_t *addr, atomic_val_t bits) { return __atomic_fetch_and(addr, ~bits, __ATOMIC_SEQ_CST); |