6#ifndef __ZEPHYR_RTOS_TIMER_H__
7#define __ZEPHYR_RTOS_TIMER_H__
10#include <zephyr/kernel.h>
20 if (
IS_ENABLED(CONFIG_TIMER_HAS_64BIT_CYCLE_COUNTER))
21 return k_cycle_get_64();
23 return k_ticks_to_cyc_floor64(k_uptime_ticks());
28 return CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC;
31#define sof_cycle_get_64_safe() sof_cycle_get_64()
32#define sof_cycle_get_64_atomic() sof_cycle_get_64()
33#define platform_timer_stop(x)
#define IS_ENABLED(config)
Definition common.h:173
Audio component base device "class".
Definition component.h:645
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:18
static uint64_t sys_cycle_get_64_rate(void)
Definition timer.h:26
void platform_host_timestamp(struct comp_dev *host, struct sof_ipc_stream_posn *posn)