zephyr/tests/kernel/timer/timer_behavior/Kconfig
Andrzej Głąbek a30a65215d tests: kernel: timer_behavior: Fix building on targets with small SRAM
In the default configuration of the test, with 10000 timer samples,
the `periodic_data` array is too big to fit in SRAM on many targets.
Use lower counts of samples for those, depending on their SRAM size,
leaving at least 8 kB for other variables, buffers, stacks etc.
Exclude the test for targets with less than 16 kB.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2022-09-29 13:36:00 -05:00

34 lines
872 B
Plaintext

# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2022 Intel Corporation
mainmenu "Timer Behavior Test"
source "Kconfig.zephyr"
config TIMER_TEST_SAMPLES
int "The number of timer samples to gather for statistics"
default 1000 if (SRAM_SIZE < 24)
default 2000 if (SRAM_SIZE < 32)
default 3000 if (SRAM_SIZE < 48)
default 5000 if (SRAM_SIZE < 64)
default 7000 if (SRAM_SIZE < 96)
default 10000
config TIMER_TEST_PERIOD
int "The number of microseconds to for the timer period"
default 1000
config TIMER_TEST_MAX_STDDEV
int "Maximum standard deviation in microseconds allowed"
default 10
config TIMER_TEST_MAX_DRIFT
int "Maximum drift in microseconds allowed (should be about 1 period allowance)"
default 1000
config TIMER_TEST_PERIOD_MAX_DRIFT_PERCENT
int "Maximum drift percentage for the timer period"
default 10
help
A value of 10 means 10%.