7#ifndef ZEPHYR_INCLUDE_TIMING_TIMING_H_
8#define ZEPHYR_INCLUDE_TIMING_TIMING_H_
267#ifdef CONFIG_TIMING_FUNCTIONS
299#if defined(CONFIG_BOARD_HAS_TIMING_FUNCTIONS)
301#elif defined(CONFIG_SOC_HAS_TIMING_FUNCTIONS)
321#if defined(CONFIG_BOARD_HAS_TIMING_FUNCTIONS)
323#elif defined(CONFIG_SOC_HAS_TIMING_FUNCTIONS)
337#if defined(CONFIG_BOARD_HAS_TIMING_FUNCTIONS)
339#elif defined(CONFIG_SOC_HAS_TIMING_FUNCTIONS)
354#if defined(CONFIG_BOARD_HAS_TIMING_FUNCTIONS)
356#elif defined(CONFIG_SOC_HAS_TIMING_FUNCTIONS)
372#if defined(CONFIG_BOARD_HAS_TIMING_FUNCTIONS)
374#elif defined(CONFIG_SOC_HAS_TIMING_FUNCTIONS)
388#if defined(CONFIG_BOARD_HAS_TIMING_FUNCTIONS)
390#elif defined(CONFIG_SOC_HAS_TIMING_FUNCTIONS)
uint64_t arch_timing_freq_get(void)
Get frequency of counter used (in Hz).
uint32_t arch_timing_freq_get_mhz(void)
Get frequency of counter used (in MHz).
uint64_t arch_timing_cycles_get(volatile timing_t *const start, volatile timing_t *const end)
Get number of cycles between start and end.
uint64_t arch_timing_cycles_to_ns(uint64_t cycles)
Convert number of cycles into nanoseconds.
uint64_t arch_timing_cycles_to_ns_avg(uint64_t cycles, uint32_t count)
Convert number of cycles into nanoseconds with averaging.
timing_t arch_timing_counter_get(void)
Return timing counter.
uint64_t board_timing_cycles_to_ns(uint64_t cycles)
Convert number of cycles into nanoseconds.
uint64_t board_timing_cycles_get(volatile timing_t *const start, volatile timing_t *const end)
Get number of cycles between start and end.
void board_timing_stop(void)
Signal the end of the timing information gathering.
uint64_t board_timing_cycles_to_ns_avg(uint64_t cycles, uint32_t count)
Convert number of cycles into nanoseconds with averaging.
void board_timing_init(void)
Initialize the timing subsystem.
uint64_t board_timing_freq_get(void)
Get frequency of counter used (in Hz).
uint32_t board_timing_freq_get_mhz(void)
Get frequency of counter used (in MHz).
void board_timing_start(void)
Signal the start of the timing information gathering.
timing_t board_timing_counter_get(void)
Return timing counter.
void soc_timing_stop(void)
Signal the end of the timing information gathering.
void soc_timing_start(void)
Signal the start of the timing information gathering.
void soc_timing_init(void)
Initialize the timing subsystem on SoC.
uint64_t soc_timing_cycles_to_ns_avg(uint64_t cycles, uint32_t count)
Convert number of cycles into nanoseconds with averaging.
timing_t soc_timing_counter_get(void)
Return timing counter.
uint32_t soc_timing_freq_get_mhz(void)
Get frequency of counter used (in MHz).
uint64_t soc_timing_cycles_get(volatile timing_t *const start, volatile timing_t *const end)
Get number of cycles between start and end.
uint64_t soc_timing_cycles_to_ns(uint64_t cycles)
Convert number of cycles into nanoseconds.
uint64_t soc_timing_freq_get(void)
Get frequency of counter used (in Hz).
static uint64_t timing_cycles_to_ns(uint64_t cycles)
Convert number of cycles into nanoseconds.
Definition timing.h:352
static uint64_t timing_cycles_to_ns_avg(uint64_t cycles, uint32_t count)
Convert number of cycles into nanoseconds with averaging.
Definition timing.h:370
void timing_start(void)
Signal the start of the timing information gathering.
void timing_init(void)
Initialize the timing subsystem.
static uint32_t timing_freq_get_mhz(void)
Get frequency of counter used (in MHz).
Definition timing.h:386
static uint64_t timing_cycles_get(volatile timing_t *const start, volatile timing_t *const end)
Get number of cycles between start and end.
Definition timing.h:318
static timing_t timing_counter_get(void)
Return timing counter.
Definition timing.h:297
static uint64_t timing_freq_get(void)
Get frequency of counter used (in Hz).
Definition timing.h:335
void timing_stop(void)
Signal the end of the timing information gathering.
uint64_t timing_t
Definition types.h:10
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT64_TYPE__ uint64_t
Definition stdint.h:91