zephyr/samples/subsys/logging/logger/src
Piotr Zięcik ec857d0e4a logging: 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
..
ext_log_system_adapter.c log: make name param explicit 2018-09-11 13:25:55 -05:00
ext_log_system_adapter.h
ext_log_system.c
ext_log_system.h
main.c logging: Do not use CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC 2019-07-24 15:10:02 +02:00
sample_instance.c logging: Refactor LOG_MODULE_REGISTER and LOG_MODULE_DECLARE macros 2018-11-10 12:38:29 -05:00
sample_instance.h logging: Refactor LOG_MODULE_REGISTER and LOG_MODULE_DECLARE macros 2018-11-10 12:38:29 -05:00
sample_module.c logging: Refactor LOG_MODULE_REGISTER and LOG_MODULE_DECLARE macros 2018-11-10 12:38:29 -05:00
sample_module.h logging: Refactor LOG_MODULE_REGISTER and LOG_MODULE_DECLARE macros 2018-11-10 12:38:29 -05:00