nuttx-apps/examples/calib_udelay/Kconfig
Stuart Ianna e55f28594c examples/calib_udelay: Allow the number of delay loop iterations to be specified by kconfig.
The calibration test can take a long time on platforms with less
processing power. Allow the default value to be changed with kconfig.
2023-10-24 12:38:45 +08:00

32 lines
878 B
Plaintext

#
# For a description of the syntax of this configuration file,
# see misc/tools/kconfig-language.txt.
#
config EXAMPLES_CALIB_UDELAY
tristate "Calibration tool for udelay"
default n
select LIBC_FLOATINGPOINT
---help---
Note that libm support is also required by this tool. You
may select CONFIG_LIBM to use the NuttX libm if you are not
using an external libm.
if EXAMPLES_CALIB_UDELAY
config EXAMPLES_CALIB_UDELAY_NUM_MEASUREMENTS
int "Number of measurements to take for each loop iteration count"
default 3
config EXAMPLES_CALIB_UDELAY_NUM_RESULTS
int "Number of results to generate for calibration slope"
default 20
config EXAMPLES_CALIB_UDELAY_DELAY_TEST_ITERATIONS
int "Delay loop interrations per test."
default 100000
---help---
Lower numbers decrease the time taken for the test to complete,
but may reduce the accuracy of the results.
endif