Zephyr API Documentation  2.7.0-rc2
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 ALWAYS_INLINE unsigned int arch_irq_lock(void)
31{
32 return 0;
33}
34
35static inline void arch_irq_unlock(unsigned int key)
36{
37 ARG_UNUSED(key);
38}
39
40static inline bool arch_irq_unlocked(unsigned int key)
41{
42 return 0;
43}
44
45#ifdef __cplusplus
46}
47#endif /* __cplusplus */
48
49#include <sys/arch_interface.h>
50
51
52#endif /* ZEPHYR_SUBSYS_TESTSUITE_ZTEST_INCLUDE_ARCH_CPU_H */
#define ALWAYS_INLINE
Definition: common.h:116
static k_spinlock_key_t key
Definition: spinlock_error_case.c:14
__UINT32_TYPE__ uint32_t
Definition: stdint.h:60
static ALWAYS_INLINE unsigned int arch_irq_lock(void)
Definition: cpu.h:30
static bool arch_irq_unlocked(unsigned int key)
Definition: cpu.h:40
static uint32_t arch_k_cycle_get_32(void)
Definition: cpu.h:25
static void arch_irq_unlock(unsigned int key)
Definition: cpu.h:35