Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
misc.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2013-2014 Wind River Systems, Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
14#ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_MISC_H_
15#define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_MISC_H_
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21#ifndef _ASMLANGUAGE
23
24static inline uint32_t arch_k_cycle_get_32(void)
25{
27}
28
29static ALWAYS_INLINE void arch_nop(void)
30{
31 __asm__ volatile("nop");
32}
33
34#if defined(CONFIG_USERSPACE)
35extern bool z_arm_thread_is_in_user_mode(void);
36#endif
37
38#endif
39
40#ifdef __cplusplus
41}
42#endif
43
44#endif /* ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_MISC_H_ */
uint32_t sys_clock_cycle_get_32(void)
static ALWAYS_INLINE void arch_nop(void)
Definition: misc.h:29
static uint32_t arch_k_cycle_get_32(void)
Definition: misc.h:24
#define ALWAYS_INLINE
Definition: common.h:116
__UINT32_TYPE__ uint32_t
Definition: stdint.h:60