mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-06 13:41:56 +00:00
Promote the private z_arch_* namespace, which specifies the interface between the core kernel and the architecture code, to a new top-level namespace named arch_*. This allows our documentation generation to create online documentation for this set of interfaces, and this set of interfaces is worth treating in a more formal way anyway. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
37 lines
634 B
C
37 lines
634 B
C
/*
|
|
* Copyright (c) 2014 Wind River Systems, Inc.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
* @brief ARCv2 public kernel miscellaneous
|
|
*
|
|
* ARC-specific kernel miscellaneous interface. Included by arc/arch.h.
|
|
*/
|
|
|
|
#ifndef ZEPHYR_INCLUDE_ARCH_ARC_V2_MISC_H_
|
|
#define ZEPHYR_INCLUDE_ARCH_ARC_V2_MISC_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef _ASMLANGUAGE
|
|
extern unsigned int z_arc_cpu_sleep_mode;
|
|
|
|
extern u32_t z_timer_cycle_get_32(void);
|
|
|
|
static inline u32_t arch_k_cycle_get_32(void)
|
|
{
|
|
return z_timer_cycle_get_32();
|
|
}
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* ZEPHYR_INCLUDE_ARCH_ARC_V2_MISC_H_ */
|