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:
parent
c968422a78
commit
3ffb89ad7f
7 changed files with 35 additions and 7 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue