Zephyr Project API  3.2.0
A Scalable Open Source RTOS
cpu.h
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: Apache-2.0
3 */
4#ifndef ZEPHYR_SUBSYS_TESTSUITE_ZTEST_INCLUDE_ARCH_CPU_H
5#define ZEPHYR_SUBSYS_TESTSUITE_ZTEST_INCLUDE_ARCH_CPU_H
6
7/* This file exists as a hack around Zephyr's dependencies */
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13/* Architecture thread structure */
14struct _callee_saved {
15};
16
17typedef struct _callee_saved _callee_saved_t;
18
19struct _thread_arch {
20};
21
22typedef struct _thread_arch _thread_arch_t;
23
24/* Architecture functions */
25static inline uint32_t arch_k_cycle_get_32(void)
26{
27 return 0;
28}
29
30static inline uint64_t arch_k_cycle_get_64(void)
31{
32 return 0;
33}
34
35static ALWAYS_INLINE unsigned int arch_irq_lock(void)
36{
37 return 0;
38}
39
40static inline void arch_irq_unlock(unsigned int key)
41{
42 ARG_UNUSED(key);
43}
44
45static inline bool arch_irq_unlocked(unsigned int key)
46{
47 return 0;
48}
49
50#ifdef __cplusplus
51}
52#endif /* __cplusplus */
53
55
56
57#endif /* ZEPHYR_SUBSYS_TESTSUITE_ZTEST_INCLUDE_ARCH_CPU_H */
#define ALWAYS_INLINE
Definition: common.h:124
static k_spinlock_key_t key
Definition: spinlock_error_case.c:14
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
__UINT64_TYPE__ uint64_t
Definition: stdint.h:91
static ALWAYS_INLINE unsigned int arch_irq_lock(void)
Definition: cpu.h:35
static bool arch_irq_unlocked(unsigned int key)
Definition: cpu.h:45
static uint32_t arch_k_cycle_get_32(void)
Definition: cpu.h:25
static void arch_irq_unlock(unsigned int key)
Definition: cpu.h:40
static uint64_t arch_k_cycle_get_64(void)
Definition: cpu.h:30