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)
15#else
17#endif
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23static ALWAYS_INLINE void z_barrier_dmem_fence_full(void)
24{
25 __DMB();
26}
27
28static ALWAYS_INLINE void z_barrier_dsync_fence_full(void)
29{
30 __DSB();
31}
32
33static 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_ */
#define ALWAYS_INLINE
Definition: common.h:124
CMSIS interface file.
CMSIS interface file.