summaryrefslogtreecommitdiff
path: root/apps/examples/smart/Kconfig
blob: 933b3391315e2dbe8399f005d3f863cd57681d21 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#
# For a description of the syntax of this configuration file,
# see misc/tools/kconfig-language.txt.
#

config EXAMPLES_SMART
	bool "SMART file system example"
	default n
	---help---
		Enable the SMART file system example

if EXAMPLES_SMART

config EXAMPLES_SMART_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_SMART_ARCHINIT.  In this case, the
		initialization logic will call smart_archinitialize() to obtain
		the MTD driver instance.

config EXAMPLES_SMART_NEBLOCKS
	int "Number of erase blocks (simulated)"
	default 32
	depends on !EXAMPLES_SMART_ARCHINIT
	---help---
		When EXAMPLES_SMART_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 MTD RAM device.

		The size of the allocated RAM drive will be:

			RAMMTD_ERASESIZE * EXAMPLES_SMART_NEBLOCKS

config EXAMPLES_SMART_MAXNAME
	int "Max name size"
	default 32
	range 1 255
	---help---
		Determines the maximum size of names used in the filesystem

config EXAMPLES_SMART_MAXFILE
	int "Max file size"
	default 8192
	---help---
		Determines the maximum size of a file

config EXAMPLES_SMART_MAXIO
	int "Max I/O"
	default 347

config EXAMPLES_SMART_MAXOPEN
	int "Max open files"
	default 512

config EXAMPLES_SMART_MOUNTPT
	string "SMART mountpoint"
	default "/mnt/nxffs"

config EXAMPLES_SMART_NLOOPS
	int "Number of test loops"
	default 100

config EXAMPLES_SMART_VERBOSE
	bool "Verbose output"
	default n

endif