Zephyr Project API 4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
misc.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 KT-Elektronik, Klaucke und Partner GmbH
3 * Copyright (c) 2024 Renesas Electronics Corporation
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
15#ifndef ZEPHYR_INCLUDE_ARCH_RX_MISC_H_
16#define ZEPHYR_INCLUDE_ARCH_RX_MISC_H_
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#ifndef _ASMLANGUAGE
23
25
26static inline uint32_t arch_k_cycle_get_32(void)
27{
29}
30
32
33static inline uint64_t arch_k_cycle_get_64(void)
34{
36}
37
38static ALWAYS_INLINE void arch_nop(void)
39{
40 __asm__ volatile("nop;");
41}
42
43#define arch_brk() __asm__ volatile("brk;")
44#define arch_wait() __asm__ volatile("wait;")
45
46#endif
47
48#ifdef __cplusplus
49}
50#endif
51
52#endif /* ZEPHYR_INCLUDE_ARCH_RX_MISC_H_ */
uint64_t sys_clock_cycle_get_64(void)
uint32_t sys_clock_cycle_get_32(void)
static uint32_t arch_k_cycle_get_32(void)
Definition misc.h:26
static uint64_t arch_k_cycle_get_64(void)
Definition misc.h:33
static ALWAYS_INLINE void arch_nop(void)
Definition misc.h:36
#define ALWAYS_INLINE
Definition common.h:161
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT64_TYPE__ uint64_t
Definition stdint.h:91