2015-04-10 16:44:37 -07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013-2014 Wind River Systems, Inc.
|
|
|
|
*
|
2017-01-18 17:01:01 -08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2015-04-10 16:44:37 -07:00
|
|
|
*/
|
|
|
|
|
2015-12-04 10:09:39 -05:00
|
|
|
/**
|
|
|
|
* @file
|
2016-12-23 07:32:56 -05:00
|
|
|
* @brief Cortex-M public kernel miscellaneous
|
2015-12-04 10:09:39 -05:00
|
|
|
*
|
2016-12-23 07:32:56 -05:00
|
|
|
* ARM-specific kernel miscellaneous interface. Included by arm/arch.h.
|
2015-07-01 17:22:39 -04:00
|
|
|
*/
|
2015-04-10 16:44:37 -07:00
|
|
|
|
2018-09-14 10:43:44 -07:00
|
|
|
#ifndef ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_MISC_H_
|
|
|
|
#define ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_MISC_H_
|
2015-04-10 16:44:37 -07:00
|
|
|
|
2016-01-22 12:38:49 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-04-10 16:44:37 -07:00
|
|
|
#ifndef _ASMLANGUAGE
|
2019-03-08 14:19:05 -07:00
|
|
|
extern u32_t z_timer_cycle_get_32(void);
|
|
|
|
#define z_arch_k_cycle_get_32() z_timer_cycle_get_32()
|
2018-12-04 17:15:27 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Explicitly nop operation.
|
|
|
|
*/
|
2019-09-21 16:03:22 -07:00
|
|
|
static ALWAYS_INLINE void z_arch_nop(void)
|
2018-12-04 17:15:27 -08:00
|
|
|
{
|
|
|
|
__asm__ volatile("nop");
|
|
|
|
}
|
|
|
|
|
2015-04-10 16:44:37 -07:00
|
|
|
#endif
|
|
|
|
|
2016-01-22 12:38:49 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2018-09-14 10:43:44 -07:00
|
|
|
#endif /* ZEPHYR_INCLUDE_ARCH_ARM_CORTEX_M_MISC_H_ */
|