1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #ifndef ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_MISC_H_
- #define ZEPHYR_INCLUDE_ARCH_ARM_AARCH32_MISC_H_
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifndef _ASMLANGUAGE
- extern uint32_t sys_clock_cycle_get_32(void);
- static inline uint32_t arch_k_cycle_get_32(void)
- {
- return sys_clock_cycle_get_32();
- }
- static ALWAYS_INLINE void arch_nop(void)
- {
- __asm__ volatile("nop");
- }
- #if defined(CONFIG_USERSPACE)
- extern bool z_arm_thread_is_in_user_mode(void);
- #endif
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
|