Zephyr Project API
3.4.0
A Scalable Open Source RTOS
barrier.h
Go to the documentation of this file.
1
6
#ifndef ZEPHYR_INCLUDE_BARRIER_ARM_H_
7
#define ZEPHYR_INCLUDE_BARRIER_ARM_H_
8
9
#ifndef ZEPHYR_INCLUDE_SYS_BARRIER_H_
10
#error Please include <zephyr/sys/barrier.h>
11
#endif
12
13
#if defined(CONFIG_CPU_CORTEX_M)
14
#include <
zephyr/arch/arm/aarch32/cortex_m/cmsis.h
>
15
#else
16
#include <
zephyr/arch/arm/aarch32/cortex_a_r/cmsis.h
>
17
#endif
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
23
static
ALWAYS_INLINE
void
z_barrier_dmem_fence_full(
void
)
24
{
25
__DMB();
26
}
27
28
static
ALWAYS_INLINE
void
z_barrier_dsync_fence_full(
void
)
29
{
30
__DSB();
31
}
32
33
static
ALWAYS_INLINE
void
z_barrier_isync_fence_full(
void
)
34
{
35
__ISB();
36
}
37
38
#ifdef __cplusplus
39
}
40
#endif
41
42
#endif
/* ZEPHYR_INCLUDE_BARRIER_ARM_H_ */
ALWAYS_INLINE
#define ALWAYS_INLINE
Definition:
common.h:124
cmsis.h
CMSIS interface file.
cmsis.h
CMSIS interface file.
include
zephyr
arch
arm
aarch32
barrier.h
Generated on Sat Jun 17 2023 07:48:26 for Zephyr Project API by
1.9.2