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.
This commit is contained in:
parent
7605197f9d
commit
e55f28594c
@ -22,4 +22,10 @@ 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
|
||||
|
@ -43,7 +43,7 @@
|
||||
# define CONFIG_EXAMPLES_CALIB_UDELAY_NUM_RESULTS 20
|
||||
#endif
|
||||
|
||||
#define DELAY_TEST_ITERS 100000
|
||||
#define DELAY_TEST_ITERS CONFIG_EXAMPLES_CALIB_UDELAY_DELAY_TEST_ITERATIONS
|
||||
|
||||
/****************************************************************************
|
||||
* Private Types
|
||||
|
Loading…
Reference in New Issue
Block a user