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) 2019 Carlo Caione <ccaione@baylibre.com>
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
15
#ifndef ZEPHYR_INCLUDE_ARCH_ARM64_MISC_H_
16
#define ZEPHYR_INCLUDE_ARCH_ARM64_MISC_H_
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
22
#ifndef _ASMLANGUAGE
23
extern
uint32_t
sys_clock_cycle_get_32
(
void
);
24
25
static
inline
uint32_t
arch_k_cycle_get_32
(
void
)
26
{
27
return
sys_clock_cycle_get_32
();
28
}
29
30
static
ALWAYS_INLINE
void
arch_nop
(
void
)
31
{
32
__asm__
volatile
(
"nop"
);
33
}
34
35
#endif
36
37
#ifdef __cplusplus
38
}
39
#endif
40
41
#endif
/* ZEPHYR_INCLUDE_ARCH_ARM64_MISC_H_ */
sys_clock_cycle_get_32
uint32_t sys_clock_cycle_get_32(void)
arch_nop
static ALWAYS_INLINE void arch_nop(void)
Definition:
misc.h:30
arch_k_cycle_get_32
static uint32_t arch_k_cycle_get_32(void)
Definition:
misc.h:25
ALWAYS_INLINE
#define ALWAYS_INLINE
Definition:
common.h:116
uint32_t
__UINT32_TYPE__ uint32_t
Definition:
stdint.h:60
include
arch
arm64
misc.h
Generated on Sun Oct 9 2022 09:21:56 for Zephyr API Documentation by
1.9.4