summaryrefslogtreecommitdiff
path: root/apps/examples/configdata/Kconfig
blob: 49d1d874c260229af09b769dd816fe436510ac52 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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