summaryrefslogtreecommitdiff
path: root/apps/examples/random/Kconfig
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-10-20 11:37:56 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-10-20 11:37:56 -0600
commit5d38ee0f6f16a8db3b212d9282a21d5833b669e7 (patch)
treee97ba7461ff319ab77864afdf2aa45f0fcc340d9 /apps/examples/random/Kconfig
parentcd6eaa5af6142c5a1027a14763df280b5c141999 (diff)
downloadnuttx-5d38ee0f6f16a8db3b212d9282a21d5833b669e7.tar.gz
nuttx-5d38ee0f6f16a8db3b212d9282a21d5833b669e7.tar.bz2
nuttx-5d38ee0f6f16a8db3b212d9282a21d5833b669e7.zip
apps/examples/random: Add a test for /dev/random
Diffstat (limited to 'apps/examples/random/Kconfig')
-rw-r--r--apps/examples/random/Kconfig31
1 files changed, 31 insertions, 0 deletions
diff --git a/apps/examples/random/Kconfig b/apps/examples/random/Kconfig
new file mode 100644
index 000000000..8fde3e7d8
--- /dev/null
+++ b/apps/examples/random/Kconfig
@@ -0,0 +1,31 @@
+#
+# For a description of the syntax of this configuration file,
+# see misc/tools/kconfig-language.txt.
+#
+
+config EXAMPLES_RANDOM
+ bool "/dev/random test"
+ default n
+ depends on DEV_RANDOM
+ ---help---
+ Enable a simple test of /dev/random
+
+if EXAMPLES_RANDOM
+
+config EXAMPLES_MAXSAMPLES
+ int "I/O buffer size"
+ default 64
+ ---help---
+ This is the size of the /dev/random I/O buffer in units of 32-bit
+ samples. Careful! This buffer is allocated on the stack as needed!
+
+config EXAMPLES_NSAMPLES;
+ int "Default samples"
+ default 8
+ ---help---
+ When you execute the rand command, a number of samples ranging from
+ 1 to EXAMPLES_MAXSAMPLES may be specified. If no argument is
+ specified, this is the default number of samples that will be
+ collected and displayed.
+
+endif