blob: 7f95665f460a578c8f1de1d72588fd10abbfdb89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* Copyright 2021 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* This file is to provide atomic_t definition */
#ifndef __CROS_EC_ATOMIC_T_H
#define __CROS_EC_ATOMIC_T_H
#ifndef CONFIG_ZEPHYR
#ifdef TEST_BUILD
typedef int atomic_t;
#else
typedef long atomic_t;
#endif
typedef atomic_t atomic_val_t;
#else
#include <zephyr/sys/atomic.h>
#endif
#endif /* __CROS_EC_ATOMIC_T_H */
|