summaryrefslogtreecommitdiff
path: root/apps/examples/configdata/Kconfig
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-11-04 09:05:11 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-11-04 09:05:11 -0600
commitcab35aed493b9f97d2913504b5b354b1a8b83239 (patch)
treeb9fac5d570c2497fd19c1dc0fd16eaec39760e84 /apps/examples/configdata/Kconfig
parent56d21b36736854d04ad4a82bd30517a46bfb985a (diff)
downloadnuttx-cab35aed493b9f97d2913504b5b354b1a8b83239.tar.gz
nuttx-cab35aed493b9f97d2913504b5b354b1a8b83239.tar.bz2
nuttx-cab35aed493b9f97d2913504b5b354b1a8b83239.zip
apps/example/configdata: Unit test for the MTD configuration data driver
Diffstat (limited to 'apps/examples/configdata/Kconfig')
-rw-r--r--apps/examples/configdata/Kconfig50
1 files changed, 50 insertions, 0 deletions
diff --git a/apps/examples/configdata/Kconfig b/apps/examples/configdata/Kconfig
new file mode 100644
index 000000000..49d1d874c
--- /dev/null
+++ b/apps/examples/configdata/Kconfig
@@ -0,0 +1,50 @@
+#
+# For a description of the syntax of this configuration file,
+# see misc/tools/kconfig-language.txt.
+#
+
+config EXAMPLES_CONFIGDATA
+ bool "Config Data example / unit test"
+ default n
+ ---help---
+ Enable the Config Data example
+
+if EXAMPLES_CONFIGDATA
+
+config EXAMPLES_CONFIGDATA_ARCHINIT
+ bool "Architecture-specific initialization"
+ default n
+ ---help---
+ The default is to use the RAM MTD device at drivers/mtd/rammtd.c.
+ But an architecture-specific MTD driver can be used instead by
+ defining EXAMPLES_CONFIGDATA_ARCHINIT. In this case, the
+ initialization logic will call configdata_archinitialize() to obtain
+ the MTD driver instance.
+
+config EXAMPLES_CONFIGDATA_NEBLOCKS
+ int "Number of erase blocks (simulated)"
+ default 4
+ depends on !EXAMPLES_CONFIGDATA_ARCHINIT
+ ---help---
+ When EXAMPLES_CONFIGDATA_ARCHINIT is not defined, this test will use
+ the RAM MTD device at drivers/mtd/rammtd.c to simulate FLASH. In
+ this case, this value must be provided to give the nubmer of erase
+ blocks in the MTD RAM device.
+
+ The size of the allocated RAM drive will be:
+
+ RAMMTD_ERASESIZE * EXAMPLES_CONFIGDATA_NEBLOCKS
+
+config EXAMPLES_CONFIGDATA_NLOOPS
+ int "Number of test loops"
+ default 1000
+
+config EXAMPLES_CONFIGDATA_VERBOSE
+ bool "Verbose output"
+ default n
+
+config EXAMPLES_CONFIGDATA_SILENT
+ bool "Silence the test details"
+ default n
+
+endif