arches: fix z_arch_k_cycle_get_32() definitions

These need to all be inline functions and not macros.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2019-10-03 15:05:34 -07:00 committed by Anas Nashif
commit 3ffb89ad7f
7 changed files with 35 additions and 7 deletions

View file

@ -199,7 +199,11 @@ enum nios2_exception_cause {
extern u32_t z_timer_cycle_get_32(void);
#define z_arch_k_cycle_get_32() z_timer_cycle_get_32()
static inline u32_t z_arch_k_cycle_get_32(void)
{
return z_timer_cycle_get_32();
}
/**
* @brief Explicitly nop operation.