zephyr/tests/benchmarks
Piotr Zięcik 5f6cae38db tests: benchmarks: Do not use CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC
On some SoCs the frequency of the system clock is obtained at run time
as the exact configuration of the hardware is not known at compile time.
On such platforms using CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC define
directly introduces timing errors.

This commit replaces CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC by the call
to inline function sys_clock_hw_cycles_per_sec() which always returns
correct frequency of the system clock.

Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>
2019-07-24 15:10:02 +02:00
..
app_kernel cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
boot_time tests: benchmarks: Do not use CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC 2019-07-24 15:10:02 +02:00
latency_measure cleanup: include/: move misc/printk.h to sys/printk.h 2019-06-27 22:55:49 -04:00
mbedtls cleanup: include/: move misc/printk.h to sys/printk.h 2019-06-27 22:55:49 -04:00
sched cleanup: include/: move misc/printk.h to sys/printk.h 2019-06-27 22:55:49 -04:00
sys_kernel lifo/fifo: first word is not always first 4 bytes 2019-06-26 09:08:42 -04:00
timing_info tests: benchmarks: Do not use CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC 2019-07-24 15:10:02 +02:00