2015-04-11 07:44:37 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2014 Wind River Systems, Inc.
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2015-04-11 07:44:37 +08:00
|
|
|
*/
|
|
|
|
|
2015-12-04 23:09:39 +08:00
|
|
|
/**
|
|
|
|
* @file
|
2016-12-23 20:32:56 +08:00
|
|
|
* @brief ARCv2 public kernel miscellaneous
|
2015-12-04 23:09:39 +08:00
|
|
|
*
|
2016-12-23 20:32:56 +08:00
|
|
|
* ARC-specific kernel miscellaneous interface. Included by arc/arch.h.
|
2015-07-02 05:22:39 +08:00
|
|
|
*/
|
2015-04-11 07:44:37 +08:00
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#ifndef ZEPHYR_INCLUDE_ARCH_ARC_V2_MISC_H_
|
|
|
|
#define ZEPHYR_INCLUDE_ARCH_ARC_V2_MISC_H_
|
2015-04-11 07:44:37 +08:00
|
|
|
|
2016-01-23 01:38:49 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-04-11 07:44:37 +08:00
|
|
|
#ifndef _ASMLANGUAGE
|
2016-12-15 02:04:36 +08:00
|
|
|
extern unsigned int k_cpu_sleep_mode;
|
2017-02-16 05:40:17 +08:00
|
|
|
|
2019-03-09 05:19:05 +08:00
|
|
|
extern u32_t z_timer_cycle_get_32(void);
|
|
|
|
#define z_arch_k_cycle_get_32() z_timer_cycle_get_32()
|
2015-04-11 07:44:37 +08:00
|
|
|
#endif
|
|
|
|
|
2016-01-23 01:38:49 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#endif /* ZEPHYR_INCLUDE_ARCH_ARC_V2_MISC_H_ */
|