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
|
@ -22,7 +22,11 @@ extern "C" {
|
||||||
extern unsigned int z_arc_cpu_sleep_mode;
|
extern unsigned int z_arc_cpu_sleep_mode;
|
||||||
|
|
||||||
extern u32_t z_timer_cycle_get_32(void);
|
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();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -20,7 +20,11 @@ extern "C" {
|
||||||
|
|
||||||
#ifndef _ASMLANGUAGE
|
#ifndef _ASMLANGUAGE
|
||||||
extern u32_t z_timer_cycle_get_32(void);
|
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.
|
* @brief Explicitly nop operation.
|
||||||
|
|
|
@ -199,7 +199,11 @@ enum nios2_exception_cause {
|
||||||
|
|
||||||
|
|
||||||
extern u32_t z_timer_cycle_get_32(void);
|
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.
|
* @brief Explicitly nop operation.
|
||||||
|
|
|
@ -45,7 +45,11 @@ struct __esf {
|
||||||
typedef struct __esf z_arch_esf_t;
|
typedef struct __esf z_arch_esf_t;
|
||||||
|
|
||||||
extern u32_t z_timer_cycle_get_32(void);
|
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.
|
* @brief Explicitly nop operation.
|
||||||
|
|
|
@ -156,7 +156,11 @@ static ALWAYS_INLINE void z_arch_nop(void)
|
||||||
|
|
||||||
|
|
||||||
extern u32_t z_timer_cycle_get_32(void);
|
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();
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -211,7 +211,11 @@ extern void z_arch_irq_enable(unsigned int irq);
|
||||||
extern void z_arch_irq_disable(unsigned int irq);
|
extern void z_arch_irq_disable(unsigned int irq);
|
||||||
|
|
||||||
extern u32_t z_timer_cycle_get_32(void);
|
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();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns true if interrupts were unlocked prior to the
|
* Returns true if interrupts were unlocked prior to the
|
||||||
|
|
|
@ -81,7 +81,11 @@ extern void z_irq_spurious(void *unused);
|
||||||
#define XTENSA_ERR_NORET
|
#define XTENSA_ERR_NORET
|
||||||
|
|
||||||
extern u32_t z_timer_cycle_get_32(void);
|
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.
|
* @brief Explicitly nop operation.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue