12#ifndef __ZEPHYR_RTOS_TIMER_H__
13#define __ZEPHYR_RTOS_TIMER_H__
16#include <zephyr/kernel.h>
26 if (IS_ENABLED(CONFIG_TIMER_HAS_64BIT_CYCLE_COUNTER))
27 return k_cycle_get_64();
29 return k_ticks_to_cyc_floor64(k_uptime_ticks());
34 return CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC;
37#define sof_cycle_get_64_safe() sof_cycle_get_64()
38#define sof_cycle_get_64_atomic() sof_cycle_get_64()
39#define platform_timer_stop(x)
Sound Open Firmware global runtime context.
Audio component base device "class" used by all other component types.
Definition component.h:587
Definition dai-zephyr.h:49
uint64_t wallclock
audio wall clock
Definition stream.h:143
void platform_dai_timestamp(struct comp_dev *dai, struct sof_ipc_stream_posn *posn)
void platform_dai_wallclock(struct comp_dev *dai, uint64_t *wallclock)
static uint64_t sof_cycle_get_64(void)
Definition timer.h:24
static uint64_t sys_cycle_get_64_rate(void)
Definition timer.h:32
void platform_host_timestamp(struct comp_dev *host, struct sof_ipc_stream_posn *posn)