Skip to content
Permalink
Browse files

latency_measure: Fix bug where the wrong prj.conf file was used

Fix a bug in the latency_measure sample where, when the board was
specified through the environment, the wrong prj.conf file was
selected.

This change is not a pure refactoring, as it is believed that there
have been some copy-paste mistakes where prj_small_freq_divider.conf
and prj.conf have become out-of-sync over time. These assumed mistakes
are not carried over in the new organization.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
  • Loading branch information...
SebastianBoe authored and nashif committed May 3, 2019
1 parent 6db7968 commit 72177da74bd2409833fe27d2224d2d895db15d96
@@ -1,16 +1,6 @@
# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.13.1)
set(small_freq_divider_frdm_k64f TRUE)
set(small_freq_divider_arduino_due TRUE)
set(small_freq_divider_qemu_cortex_m3 TRUE)

if(small_freq_divider_${BOARD})
set(CONF_FILE prj_small_freq_divider.conf)
else()
set(CONF_FILE prj.conf)
endif()

include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
project(latency_measure)

@@ -1,14 +1,4 @@
CONFIG_TEST=y
# needed for printf output sent to console
CONFIG_STDOUT_CONSOLE=y

# eliminate timer interrupts during the benchmark
# for platforms that do not allow frequency dividers large enough to get
# system clock tick period in 1 sec, make system clock tick to 0.1 sec
CONFIG_SYS_CLOCK_TICKS_PER_SEC=10

# We use irq_offload(), enable it
CONFIG_IRQ_OFFLOAD=y
CONFIG_FORCE_NO_ASSERT=y

CONFIG_COVERAGE=n
@@ -0,0 +1,4 @@
# eliminate timer interrupts during the benchmark
# for platforms that do not allow frequency dividers large enough to get
# system clock tick period in 1 sec, make system clock tick to 0.1 sec
CONFIG_SYS_CLOCK_TICKS_PER_SEC=10
@@ -0,0 +1,4 @@
# eliminate timer interrupts during the benchmark
# for platforms that do not allow frequency dividers large enough to get
# system clock tick period in 1 sec, make system clock tick to 0.1 sec
CONFIG_SYS_CLOCK_TICKS_PER_SEC=10

0 comments on commit 72177da

Please sign in to comment.
You can’t perform that action at this time.